XP is just a number | |
PerlMonks |
Re: Text::ParseWordsby derby (Abbot) |
on Oct 06, 2001 at 05:22 UTC ( [id://117152]=note: print w/replies, xml ) | Need Help?? |
Brother Kozz,
You have committed no sins, you're soul is clean. Looking at Text::Parsewords, the reqex is kinda of hairy and doesn't handle the case you've thrown at it. (my numbers) In your case, we fail the first part of the regex (lines 3-5) because we only have a single quote. We also fail the second part of the regex (lines 8-10) because we do start with a quote. Since we've failed the match, $quote is undef, $unquoted is undef and $delim is undef. As a result of them all being undef, an empty list is returned. Maybe some of the more regex-y inclined brothers can think of a replacement regex. It hurts me just to read the ones like this. -derby
In Section
Seekers of Perl Wisdom
|
|