Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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"; } ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash Ref Error
by stevieb (Canon) on Sep 15, 2015 at 21:27 UTC | |
by Maresia (Beadle) on Sep 15, 2015 at 21:43 UTC | |
by stevieb (Canon) on Sep 15, 2015 at 22:54 UTC | |
|
Re: Hash Ref Error
by BillKSmith (Monsignor) on Sep 16, 2015 at 02:50 UTC | |
|
Re: Hash Ref Error
by tangent (Parson) on Sep 15, 2015 at 21:41 UTC | |
by AnomalousMonk (Archbishop) on Sep 15, 2015 at 22:03 UTC | |
by stevieb (Canon) on Sep 15, 2015 at 22:29 UTC |