No such thing as a small change | |
PerlMonks |
Re: perl and sudo basic questionby Argel (Prior) |
on Jul 09, 2007 at 23:49 UTC ( [id://625733]=note: print w/replies, xml ) | Need Help?? |
Based on the output $su->sudo_run is returning a Hash reference and you cannot print the contents of the hash the way you are trying. For debuggin purposes try adding the following:
After use Sudo:
And then replace your line 15 (print $result) with the following:
That should show you what is in the hash.
In Section
Seekers of Perl Wisdom
|
|