walkingthecow has asked for the wisdom of the Perl Monks concerning the following question:
However, I'd much rather user's be able to do something like this:my ($locked,undef,undef,undef,undef,$expire)=$ssh->get_user_info($logi +nid);
In other words, even though the subroutine returns all values, I would like the script to be able to define what values it actually wants, rather than saying undef.my ($locked_status,$expire)=$ssh->get_user_info($loginid); my $inactive=$ssh->get_user_info($loginid);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Returning multiple values from subroutine
by roboticus (Chancellor) on Oct 16, 2009 at 22:34 UTC | |
|
Re: Returning multiple values from subroutine
by Marshall (Canon) on Oct 17, 2009 at 00:52 UTC | |
|
Re: Returning multiple values from subroutine
by LanX (Saint) on Oct 16, 2009 at 22:45 UTC | |
|
Re: Returning multiple values from subroutine
by muba (Priest) on Oct 16, 2009 at 22:29 UTC | |
|
Re: Returning multiple values from subroutine
by LanX (Saint) on Oct 16, 2009 at 23:05 UTC |