A few more details would help, but I'm assuming your local script has something along the lines of `ssh $remote_host $cmd`;, if so, then modifying this to read my $out = `ssh $remote_host $cmd`;` will capture STDOUT, from the remote host, into $out.
Subsequently, assuming a hash was dumped at the remote host, eval $out;die $@ if $@; should create $VAR1 as a hash ref. locally.
A user level that continues to overstate my experience :-))
| [reply] [d/l] [select] |
I set this line to a variable like you stated above, however I am not dumping any hash. I thought that printing the $out variable would return the same value as the system command.
my $out = system('ssh $host $cmd');
print $out;
| [reply] [d/l] |
examine Bloodnook's advice again
` is not the same as ' and you don't need system when using backticks and while we're at it, have a look at Net::SSH::Perl and see if that would make your life easier.
| [reply] [d/l] [select] |
| [reply] [d/l] |