What I was looking to do is print all lines in the file after STRUC20
The flip-flop operator (aka the range operator .. in scalar context) might come in handy for that:
while (<UNMODIFIED>) { print MODIFIED $_ unless 1 .. /STRUC20/; # i.e. do print, except for first line upto a line that matches ST +RUC20 }
In reply to Re^3: Readdir against large number of files
by almut
in thread Readdir against large number of files
by learningperl01
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |