good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: seperating a string with substr...by ysth (Canon) |
on Jun 30, 2006 at 05:05 UTC ( [id://558508]=note: print w/replies, xml ) | Need Help?? |
If $data may contain newlines, you'd want instead:
(Also note that your () were unnecessary, since list context //g will return the entire match if there are no submatches.)
In Section
Seekers of Perl Wisdom
|
|