NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Bug? (Score:2)
Shouldn't that regex be
m/(\"[^"]+\"|\S+)/g? Or as I'd normally write it,/("[^"]+"|\S+)/g. The string might include two quoted phrases.Re:Bug? (Score:1)
The second regex would do very nicely
@JAPH = qw(Hacker Perl Another Just);
print reverse @JAPH;
Reply to This
Parent