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
In reply to Assigning a variable to a Hash key reference by malaga
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |