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.
Try this instead: (Score:2)
Re:Try this instead: (Score:2)
Very interesting. I suspect it would take me a while to debug, but I've discovered that while this passes my test case wonderfully, it fails miserably when using that in the Lexer.pm [plover.com] example from HOP. My test case is clearly not representing the problem as well as I thought since others are having this problem on the Perlmonks site.
A more natural way? (Score:1)
Do you really need a deferred pattern there? I’d write it like so:
(which of course implies variables rather than constants.)
Now given that, you get a zero-length match: