No such thing as a small change | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Can you guess what each is going to print before you run it? Its unlikely many will that dont already know of this bug. I certainly didn't. And im pretty sure this is a bug and in my eyes not in the slightest bit beautiful. For those that want this spelled out. (Update: actually maybe it isnt a bug, suprising as hell, but not a bug.) This should be
Instead its 'best' for them all. Very tricky, and IMO a bug. $\; should not parse as $; in a double quoted string. Likewise for $\; Update: Except that im wrong. The rules are: Find the end, unescape any escaped delimiters, handle interpolation. Thus the $\; becomes $; before the interpolation scan starts, which explains this brain teaser. And IMO is worth a perldoc update just to point it out. ++ to bart and buu.
---
demerphq First they ignore you, then they laugh at you, then they fight you, then you win.
In reply to Re: The beauty that is perl.
by demerphq
|
|