Fouled Script
Harry Schroeder
has3 at usa.net
Mon Jan 7 08:58:32 CST 2002
Check for missing semi colons.
Has3
SoloCDM wrote:
>The attached script is my first attempt at some means of perl
>scripting, base on your advice. It won't work. I keep getting the
>following error:
>
>syntax error at ./find-perl-sample2 line 8, near "open "
>Execution of ./find-perl-sample2 aborted due to compilation errors.
>
>
>------------------------------------------------------------------------
>
>#!/usr/bin/perl -w
>#
>
>$MDIR = [directory]
>$MFILES = "find $MDIR -type f -ls -xdev -fstype ext2 \( -iname '*personal*' -o -iname '.*personal*' \) -print"
>
>open FIND, "$MFILES |" or die $!
>while( <FIND> ) {
> print "$_\n";
>}
>close FIND;
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/archives/pikes-peak-pm/attachments/20020107/119c401c/attachment.htm
More information about the Pikes-peak-pm
mailing list