in reply to Re^2: Strange Behavior with XML::Simple when pulling info out of an XML file
in thread Strange Behavior with XML::Simple when pulling info out of an XML file
$element = scalar(@{$datasource});
$element = @$datasource; #same thing $element is a scalar so explicit conversion not required.
$x < @$datasource #also scalar context
You only need the extra curly braces when there is a subscript involved - so deference applies to the whole thing.
|
|---|