Can someone let me know how I should have this done?Global symbol "$my_data_ref" requires explicit package name ....
... # Create a hash with the data my %my_data = ( names => $some_data); my $my_data_ref = \%my_data; my @all_names = split/\n/, ${ $my_data_ref } { names }; foreach my $rows (@all_names){ print $rows."\n"; } ...
In reply to Hash Ref Error by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |