Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
to be more precise. Here is the code of a sub
sub interface_control { my $s = shift; my (@r, $v, @h); $s->get_handles(rtrs=>\@r, vars=>\$v, hosts=>\@h);
get_handles returns the handle for the args specified. These args are stored as hash/key pair in a file
Call to the sub is made via interface_control($s)
MY question is , i want to specifically access, one of the element in the array @r, say only $r[0]. Is there a way to access this or pass any reference to interface_control call
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Accessing single element without args
by Athanasius (Archbishop) on Mar 31, 2015 at 03:26 UTC | |
by Anonymous Monk on Mar 31, 2015 at 03:38 UTC | |
by Athanasius (Archbishop) on Mar 31, 2015 at 04:02 UTC | |
by Anonymous Monk on Mar 31, 2015 at 04:18 UTC | |
by Athanasius (Archbishop) on Mar 31, 2015 at 06:09 UTC | |
| |
by Anonymous Monk on Mar 31, 2015 at 03:49 UTC |