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 =
In reply to Re^2: print hash of hashes with a reference
by ScOut3R
in thread print hash of hashes with a reference
by ScOut3R
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |