in reply to Cut n' paste monkey on my back
my %flag = (); while (<IN>) { s/\.\d+\s*=\s*/_/; # Format the string to match nicer $flag{$1}++ if /(VLAN|if(?:Oper|Admin)Status_(?:up|down))/; } # Now access $flag{VLAN}, $flag{ifOperStatus_up}, etc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Cut n' paste monkey on my back
by turnstep (Parson) on Nov 02, 2000 at 07:03 UTC | |
|
RE: (2) Cut n' paste monkey on my back (increment hash entries)
by ybiC (Prior) on Nov 02, 2000 at 09:31 UTC |