Hmm, interesting fact: my first impression of
Merlyn's comment was not offensive at all. I mean, I happen to have read the appropriate Apocalypse about dereferencing List/Hash elements. For me, Merlyn's comment just looks like an enlightenment on the subject rather than saying "you're plain wrong" - a way of giving help and improve indpendent judgement at once.
On the other hand, if you're just here for some cut-and-paste coding, this way of thinking is likely a mere distraction.
Anyway, from Apocalypse 2 (not the main discussion about interpolation, but it's mentioned here as well):
Note for those who are thinking we should just stick with Perl 5 interpolation rules: We have to allow % to introduce interpolation now because individual hash values are no longer named with $foo{$bar}, but rather %foo{$bar}. So we might as well allow interpolation of complete hashes.
Conclusion: I don't think this discussion is worth a standard reply disclaimer block ;-)
--
Cheers, Joe
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
|
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.