|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: Record Separator affecting Regexby jdporter (Canon) |
| on Nov 07, 2002 at 19:13 UTC ( #211190=note: print w/ replies, xml ) | Need Help?? |
|
The problem is that comments and statements are terminated by two different things, and you can expect to see the two types of elements intermingled. What I would do, if the file isn't grotesquely huge, is read it all into $_, remove the comments, and then split.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||