in reply to Creating a Hash from Two Arrays
That should produce the data structure that brother fglock mentioned in the first reply.my %Args; # Hash of arrays for arguments. my $SwitchName; # The current switch name foreach ( @values ) { if ( /^\-/ ) { $SwitchName = $_; else { push ( @{ $Args{ $SwitchName } }, $_ ); } }
--t. alex
but my friends call me T.
|
|---|