|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: How to make an array from an array?by barrd (Priest) |
| on Dec 06, 2003 at 14:47 UTC ( #312769=note: print w/ replies, xml ) | Need Help?? |
|
Straight from Perl Cookbook (well almost :-) This prints john andy bill julia, I'm sure you'll get other variations. Update 1: Fixed typos in code D'oh. Update 2: As TomDLux rightly pointed out, you may wish to sort the names alphabetically, if so just change line 3 to this: Returning: andy bill john julia (which is what I meant to do originally but ... err... didn't)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||