in reply to Cleaning up a text file with compact regex
open( my $fh, '<', 'file.txt' ) or die "Cannot read file.txt: $!\n"; # clearer idiom, anyone? scalar <$fh> for 1 .. 6; while (<$fh>) { next if /^;/; # ... process lines }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Cleaning up a text file with compact regex
by betterworld (Curate) on Apr 24, 2007 at 09:49 UTC |