good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: regex 2 match C functionby CombatSquirrel (Hermit) |
on Aug 13, 2003 at 15:47 UTC ( [id://283587]=note: print w/replies, xml ) | Need Help?? |
If you don't want the whole file to be slurped in at once
you could, since lines of code are seperated by semi-colons in C, just use a semi-colon as an end-of-line indicator: local $/ = ';';. (only if it is not HW)Updated code that should not match ifs and such:
Hope this helped (and I hope your question was not HW, but for work, documentation or something similar as I suppose it to be).
In Section
Seekers of Perl Wisdom
|
|