enigmae has asked for the wisdom of the Perl Monks concerning the following question:
What the code would look like that is late-bound ismy result_temp=""; foreach my $test (@testarray) { if(!defined($result_temp = $session->getrequest( -varbindlist => ['$'.%cmd_table{$test}] ))) { print ("error in session:%s", %cmd_table{$test}); $result_temp="error"; } push @RESULTS, @result_temp; }
but what will the perl interpreter see?-varbindlist => [$myvariable]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using variables in late contexts?
by Eimi Metamorphoumai (Deacon) on Nov 26, 2002 at 22:46 UTC | |
|
Re: using variables in late contexts?
by robartes (Priest) on Nov 26, 2002 at 22:37 UTC | |
|
Re: using variables in late contexts?
by jreades (Friar) on Nov 26, 2002 at 22:34 UTC |