in reply to XMLin : Optimal Way to tell the difference between Array vs Scalar
Yes. Add the ForceArray => 1 option on the constructor, then XML::Simple will always return an array even if it only contains one element. See the POD for details.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XMLin : Optimal Way to tell the difference between Array vs Scalar
by tptass (Sexton) on Aug 20, 2008 at 00:11 UTC |