in reply to Perl blessed object to scalar

The objects appears to overload stringification. Although there is rarely the need to do so, one can force stringification as follows:
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
    wow that was an easy fix! Thank you very much!