in reply to short method to print age.
This mimics what you do.
Caution: Contents may have been coded under pressure.
Obviously the reverse isn't necessary unless you really want it.print "Alex children are \n\n " , join("\nand ", map $_->{age}, reverse @{$alex{children}}) , "years old\n";
Caution: Contents may have been coded under pressure.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: short method to print age.
by zouz (Initiate) on Mar 05, 2009 at 19:42 UTC |
In Section
Seekers of Perl Wisdom