in reply to Re: print hash of hashes with a reference
in thread print hash of hashes with a reference
I'd like to print values from the hashes, but somehow the way i want to extract the values from the hashes doesn't seem to work. Line 245 is the line where the print command is.$VAR1 = { '4' => { 'group ' => ' 3 ', 'user ' => ' root ', 'host ' => ' 10.0.200.181 ', 'cmd ' => ' ls -l / ' }, '1' => { 'cmd ' => ' md5sum /vmlinuz ', 'group ' => ' 1 ', 'user ' => ' root ', 'host ' => ' 10.0.200.181 ' }, '3' => { 'group ' => ' 1 ', 'user ' => ' root ', 'host ' => ' 10.0.200.183 ', 'cmd ' => ' ls -l / ' }, '2' => { 'group ' => ' 2 ', 'user ' => ' root ', 'host ' => ' 10.0.200.184 ', 'cmd ' => ' ls -l / ' } }; 1. Use of uninitialized value in concatenation (.) or string at ./master- +backup-daemon.pl line 245. Host = 2. Use of uninitialized value in concatenation (.) or string at ./master- +backup-daemon.pl line 245. Host = 3. Use of uninitialized value in concatenation (.) or string at ./master- +backup-daemon.pl line 245. Host = 4. Use of uninitialized value in concatenation (.) or string at ./master- +backup-daemon.pl line 245. Host =
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: print hash of hashes with a reference
by toolic (Bishop) on Aug 16, 2008 at 21:19 UTC | |
|
Re^3: print hash of hashes with a reference
by FunkyMonk (Bishop) on Aug 16, 2008 at 21:19 UTC | |
|
Re^3: print hash of hashes with a reference
by shmem (Chancellor) on Aug 16, 2008 at 21:28 UTC | |
|
Re^3: print hash of hashes with a reference
by broomduster (Priest) on Aug 16, 2008 at 21:24 UTC | |
|
Re^3: print hash of hashes with a reference
by ScOut3R (Sexton) on Aug 16, 2008 at 21:51 UTC |