nono has asked for the wisdom of the Perl Monks concerning the following question:
I did that script but when I run it , I got this error message#! /usr/bin/perl use strict;use warnings; my %data; open(IN,"data.file"); while(<IN>){ chomp; my @line=split(/\t/,$_); $data{$line[10]}{$line[3]}=$line[2]; foreach my {$line[10]}(keys %data){ print"$data{$line[10]}\t$data{line[3]}\t$data{$line[2]}\n" }}
please could anyone help me in that issueMissing $ on loop variable at mouse5.pl line 16.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hash in perl
by blindluke (Hermit) on Jan 24, 2015 at 20:41 UTC | |
|
Re: hash in perl
by ww (Archbishop) on Jan 24, 2015 at 20:56 UTC |