malaga has asked for the wisdom of the Perl Monks concerning the following question:
Hopefully you can tell what I'm trying to do. How do I assign the value 'ven' to a variable? Thanks.while(<FILE>) { chomp; my @row = split(/\t/); my %data; @data{@fields} = @row; chomp @row; push @records, \%data; } close (FILE); my $menudir = "($ref(@records)->{ven})";##WRONG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Assigning a variable to a Hash key reference
by mattriff (Chaplain) on May 28, 2002 at 02:54 UTC | |
|
Re: Assigning a variable to a Hash key reference
by malaga (Pilgrim) on May 28, 2002 at 03:54 UTC | |
by jarich (Curate) on May 28, 2002 at 07:02 UTC | |
|
Re: Assigning a variable to a Hash key reference
by Aristotle (Chancellor) on May 28, 2002 at 16:44 UTC |