in reply to Perl blessed object to scalar
my $status_str = "$returnHash->{Status}";
my $status_str = ''.$returnHash->{'Status'};
It may have also have a method to do stringification.
my $status_str = $returnHash->{'Status'}->as_string();
The name of the method, if any, is dependent on the implementation of the class.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl blessed object to scalar
by clintonm9 (Sexton) on Mar 28, 2011 at 04:43 UTC |