|
|
| go ahead... be a heretic | |
| PerlMonks |
Re: How do I take a slice of a hash reference?by tachyon (Chancellor) |
| on May 21, 2001 at 05:44 UTC ( [id://81919]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
All that is wrong with your code is the parenths.
Join takes a list ie: join '', (list);
To give list context to your hash slice all we need
to do is move the parenths as shown, this runs fine.
Note that we do not need parenths for the array at all.
tachyon
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||