more useful options | |
PerlMonks |
Re^2: multi-line parsingby AnomalousMonk (Archbishop) |
on Mar 31, 2009 at 21:34 UTC ( [id://754544]=note: print w/replies, xml ) | Need Help?? |
You could also undef the separator and match globally ...Be aware that the code given will globally alter the $/ package variable (see perlvar). A more 'idiomatic' way to slurp the contents of a file without globally changing $/ (if you do not use the File::Slurp module or an equivalent) is with the statement or
In Section
Seekers of Perl Wisdom
|
|