devi has asked for the wisdom of the Perl Monks concerning the following question:
if($line =~ /^HWI.*/) { my @fields=split ":",$line; $id= $fields[5].":".$fields[6]; print $fields[5]," ",$fields[6]; <>; $id =~ s/\s+//; $hash1{$id}=$line; }else{ $hash1{$id}.= $line; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problem in splitting the line
by toolic (Bishop) on Jul 21, 2012 at 13:26 UTC | |
|
Re: problem in splitting the line
by 2teez (Vicar) on Jul 21, 2012 at 17:43 UTC | |
|
Re: problem in splitting the line
by aitap (Curate) on Jul 21, 2012 at 13:35 UTC | |
by Marshall (Canon) on Jul 21, 2012 at 16:42 UTC | |
by aitap (Curate) on Jul 21, 2012 at 17:20 UTC | |
by Marshall (Canon) on Jul 21, 2012 at 17:59 UTC |