I need a quick help , I'm greping some commands in a Unix Server and creating a hash out of those commands.
Issue is most of the time , there are duplicate Values which are coming and I want to remove any duplicate value of out these Hash.
Here is an example :
[randy@server04 ~/scripts]$ perl snmpperl.pl
$VAR1 = {
'1b' => [
'abc_pl',
'abc_pl',
'abc_pl',
'xyz_pl',
'xyz_pl',
],
'1a' => [
'abc_pl',
'abc_pl',
'abc_pl',
'abc_pl',
'xyz_pl',
'xyz_pl',
]
I need the Hash to be :-
$VAR1 = {
'1b' => [
'abc_pl',
'xyz_pl',
],
'1a' => [
'abc_pl',
'xyz_pl',
]