my %serviceHash;
while (<INPUT>) {
/^(\d*)\.(\d*)\:(\S*)$/;
if ( !defined( $serviceHash{ $1 } ) ) {
my @array = ();
$serviceHash{ $1 } = \@array;
}
$($serviceHash{ $1 })[ $2 ] = $3;
}
You can then do a foreach over the keys of the hash, and do the necessary processing from there.
(Update: damn those gt and lt's!)
In reply to Re: Re: Dynamic array names
by Masem
in thread Dynamic array names
by CiceroLove
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |