Think about Loose Coupling | |
PerlMonks |
Re: parsing a lineby kennethk (Abbot) |
on Nov 19, 2012 at 22:43 UTC ( [id://1004624]=note: print w/replies, xml ) | Need Help?? |
You are having trouble because : is not a 'word character' -- see Using character classes in perlretut. Easiest solution would be to remove the s modifier (Modifiers) and use .+, which will match every character except a newline (once you remove s). #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In Section
Seekers of Perl Wisdom
|
|