in reply to Re^2: Another Challenge: Splitting data into chunks part2
in thread Another Challenge: Splitting data into chunks part2
Note, there is one small difference with the results you got from your code. Im sure you can see it, and fix it if its important:-)my $iname; while(<LST>) { $iname=$1, next if /port-channel (\d+)/; next if !defined $iname; $hash->{$iname}->{$1} = $2 if (/switchport description To (\w+) ([\d\.]+)/); $Rec2->{$iname}->{$1} = $2 if (m|(fc\d+/\d+)\s+\[(\w+)\]|); }
gc
|
|---|