We don't bite newbies here... much | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
@hash{@array_of_keys}=@array_of_values;
Is the Perlish way of assigning an array of values to their equivalent keys. You could, (if you enjoy typing), write In the line you cite there isn't an array @returned_values it is a hash slice. take a look at the perldata man page for further, better presented, info
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
In reply to Re^3: return more than 1 value
by Utilitarian
|
|