"Colin Johnstone" <[EMAIL PROTECTED]> wrote ... > Gidday all,
Hello. > I wish to access the elements of an array passed by reference > #get deploy list > my @$deployList = $task->GetVariable('deployList'); > foreach( @$deployList ){ > > } If $task->GetVariable('deployList') returns a reference to an array, you have two choices: 1) my $deployList = $task->GetVariable('deployList'); foreach( @$deployList ){ 2) my @deployList = @{ $task->GetVariable('deployList') }; foreach( @deployList ){ I prefer the former. -ZO -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>