in reply to Re^4: Using a Hash Variable in an If Statement
in thread Using a Hash Variable in an If Statement
open my $out, ">", "rat.csv" or die "Can't write file:$!"; for my $name (@names) { print $out "$name,"; for (@{$data{$name}}) { print $out "$_,"; } print $out "\n"; $i++; } close($out);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Using a Hash Variable in an If Statement
by 2teez (Vicar) on May 12, 2015 at 02:26 UTC |