good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Record Separator affecting Regexby jdporter (Paladin) |
on Nov 07, 2002 at 19:13 UTC ( [id://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
|
|