in reply to Re: Veriable Length Array/Hash derived from CSV to populate an XML
in thread Veriable Length Array/Hash derived from CSV to populate an XML

Thank you wind for that answer. When I use your example, I have a couple of errors coming up.
Use of uninitialized value within @_ in concatenation (.) or string at + ./scripts.pl line 42, <CSVFILE> line 1693. <Alvarion> Use of uninitialized value within @_ in concatenation (.) or string at + ./scripts.pl line 42, <CSVFILE> line 1693. <Nekoma> Use of uninitialized value within @_ in concatenation (.) or string at + ./scripts.pl line 42, <CSVFILE> line 1693.
Line 42 of the script is
my $prefix = shift . ' ';
Line 1693 of my original csv is
"3550MayvilleSwitch","Sessions\NOC-INT\Towers\Switches","","10.10.18.2 +1"

Replies are listed 'Best First'.
Re^3: Veriable Length Array/Hash derived from CSV to populate an XML
by wind (Priest) on Mar 29, 2011 at 19:31 UTC

    Yeah, you were using a slightly older version of my post. Look at the code now.

    Regardless, you really should look into alternative ways of outputting the XML like I already listed, but the function might give you what you want if all you have is nested hashes.