in reply to Checking if a variable is an array

You can check that with the ref function:

use strict; my $var = [qw(this is an array)]; print ref $var; my $var = "This is a scalar"; print ref $var; my $var = { message => "This is a scalar" }; print ref $var;

But you really, really want to use the ForceArray configuration parameter to make all your results arrays, whether there is one or more elements in the XML.

Replies are listed 'Best First'.
Re^2: Checking if a variable is an array
by Anonymous Monk on Jun 28, 2007 at 13:28 UTC
    Wow, that's probably the fastest I've ever recieved help! Thanks alot, its solved my problem.