smack has asked for the wisdom of the Perl Monks concerning the following question:
sub foo { my $parameter = $_[0]; print "\nParameter: $parameter\n"; $ipaddress = "foo_0"; $username = "foo_1"; $password ="foo_2"; $sessionid = "foo_3"; $version = "foo_4"; $returning = ${$parameter}; return $returning; } my $returned = &foo(@ARGV[0]); print "Returned: $returned\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Creating a new variable named the contents of another
by Happy-the-monk (Canon) on Sep 27, 2004 at 12:28 UTC | |
|
Re: Creating a new variable named the contents of another
by ccn (Vicar) on Sep 27, 2004 at 12:29 UTC | |
|
Re: Creating a new variable named the contents of another
by dragonchild (Archbishop) on Sep 27, 2004 at 12:33 UTC | |
by Fletch (Bishop) on Sep 27, 2004 at 14:06 UTC | |
|
Re: Creating a new variable named the contents of another
by NetWallah (Canon) on Sep 27, 2004 at 12:30 UTC | |
|
Re: Creating a new variable named the contents of another
by smack (Beadle) on Sep 27, 2004 at 13:03 UTC |