Where's your state variable?
my $printing = 0; while (<UNMODIFIED>) { if ($printing) { print MODIFIED $_; next; } $printing++ if /STRUC20/; }
Also, you don't need the /bin/mv, just use unlink and rename.
In reply to Re: Readdir against large number of files
by gmargo
in thread Readdir against large number of files
by learningperl01
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |