in reply to XML::Xpath: How to get string from literal
According to XML::XPath::Literal, objects of that type are overloaded to return a string when needed.
print $status; # Automatically gets converted to a string.
The issue can be forced using interpolation, concatenation or the provided method.
my $status_str1 = "$status"; # Auto converted to a string. my $status_str2 = '' . $status; # Auto converted to a string. my $status_str3 = $status->value();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML::Xpath: How to get string from literal
by cormanaz (Deacon) on Jan 19, 2007 at 22:19 UTC |