Perl Monk, Perl Meditation | |
PerlMonks |
Re: Match into list?by Sidhekin (Priest) |
on Sep 04, 2007 at 00:00 UTC ( [id://636803]=note: print w/replies, xml ) | Need Help?? |
In list context, the m// operator (without /g modifier) does indeed return a list of all captures. So that's not your problem. One problem with that pattern is that it's insisting on a "+" in the time zone specification. The string you're trying to match has a "-" ... ;-) Use [+-] instead of \+, and it'll match that string at least (tested).
print "Just another Perl ${\(trickster and hacker)},"
In Section
Seekers of Perl Wisdom
|
|