Paul Kraus wrote: > > I have a hash that looks like this > > %hash { Item } = [ x, y, z ] > > so to access the elements i can > > foreach ( @ { $hash {Item} } ) { > print "$_\n"; > } > > So using the same code how can i access the elements If i am using it as a > referance > > mysub(\%hash){ > #Print Elements of Array in hash element item > ... > }
foreach ( @{ $hashref->{Item} } ) { print "$_\n"; } John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]