In your third attempt you are assigning the reference of the device array and not the array itself. Try:
my @array=@{ $hash_ref->{devices}->{device} };
In reply to Re: Pull an array from a hash... or somthing
by olus
in thread Pull an array from a hash... or somthing
by pez252
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |