in reply to Regular expressions....
$/='.'; # Records are terminated by dots my $lnum = 0; while (<>) { tr/\n//d; # Get rid of any embedded newlines ++$lnum; print "$_ --->>> record $lnum\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regular expressions....
by graff (Chancellor) on Jul 13, 2004 at 02:04 UTC |