Damn, I thought nobody saw that. ;-)
You must have seen my initial post within the first minute I posted, 'cause I updated my post before
davido made his first post.
I hesitated to include the interpolated hash slice solution initially because I think of it as an obfuscated over-kill, but included in my update for completeness. I was going to add the
print "$_ " for @animals solution too but stopped short because that solution will print an additional blank space after the last element in the array, which I consider as not a proper solution.
So the answer is -
yes, I admit I have updated without labelling it as an update.
no, I didn't see
Caron's post before my update.
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.