in reply to Returning values from a sub routine.
Either use an anonymous array, or store the values in the hash as arrays so that you can have multiple emails per name. Then you'd do something like
Or you could possibly just combine emails into a comma separated list if that is an acceptable output.for my $email (@{$info->{$name}}) { my $checking = printing( names => $name, emails => $email, ); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Returning values from a sub routine.
by Anonymous Monk on Jul 31, 2012 at 17:05 UTC | |
by suaveant (Parson) on Jul 31, 2012 at 17:33 UTC | |
by Anonymous Monk on Jul 31, 2012 at 18:04 UTC | |
by suaveant (Parson) on Jul 31, 2012 at 19:38 UTC |
In Section
Seekers of Perl Wisdom