After use Sudo:
use Data::Dumper;
And then replace your line 15 (print $result) with the following:
print Data::Dumper->Dump([$result],['result']);
That should show you what is in the hash.
In reply to Re: perl and sudo basic question
by Argel
in thread perl and sudo basic question
by yelekeri
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |