in reply to printing arrays
There are several ways:
oruse List::MoreUtils qw/mesh/; print join ' ', mesh @ID, @name;
or ...# you lose the order and every id must be unique my %h; @h{@ID} = @name ; print join ' ', %h;
Boris
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: printing arrays
by rir (Vicar) on Dec 31, 2008 at 16:23 UTC | |
by borisz (Canon) on Jan 01, 2009 at 13:43 UTC | |
by rir (Vicar) on Jan 02, 2009 at 04:22 UTC | |
Re^2: printing arrays
by Spooky (Beadle) on Dec 31, 2008 at 15:13 UTC |
In Section
Seekers of Perl Wisdom