|
|
| No such thing as a small change | |
| PerlMonks |
Re: Re: I don't use printf enoughby tilly (Archbishop) |
| on Oct 25, 2003 at 04:46 UTC ( #302024=note: print w/ replies, xml ) | Need Help?? |
|
I'm amazed. I've long seen @{[stuff]} used for interpolation, but that saves only one character over interpolation (5 vs 6 chars), is unclear, and puts stuff into the wrong context.
By contrast what you've pointed out takes 4 characters, is unclear, I wonder why I haven't seen this pointed out before? I'll definitely be remembering this, if for no reason than golf. But while I prefer it to the @{[...]} interpolation method, I still prefer concatenation over both. UPDATE: Reminder to self, always test assumptions...
In Section
Meditations
|
|
||||||||||||||||||||||