in reply to Re^5: perl parsing
in thread perl parsing
Thank you poj!!! .Can you help me understand please, how would I know not to use foreach my $sit (keys %{$hash{$line}}) when tutorials are saying I was to do it that way, but to use foreach my $sit (@{$hash{$name}}).
Why did I need to \t when creating the hoh and not use ,<comma> when Dumper had the correct info just couldnt print it out
#push @{$hash{$name}},$col2,$col3; push @{$hash{$name}},"$col2\t$col3"; # device year
2017-10-08 Athanasius added code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: perl parsing
by poj (Abbot) on Oct 06, 2017 at 19:41 UTC | |
by cbtshare (Monk) on Oct 06, 2017 at 20:59 UTC | |
by poj (Abbot) on Oct 07, 2017 at 14:19 UTC |