How To Access Value Directly From A Hash Returned By A Perl Subroutine
erics, Posted May 5th, 2011 at 9:46:29am
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
my $value = $self->myFunction()->{'result'}; Where: sub myFunction { my $self=shift; ...code here... return { 'status' => 0, 'result' => 'Hello World', }; } |
Leave Your Comment
All fields marked with "*" are required.