Brat Wizard wrote: > Josh, I have a quick question-- is there a problem passing a complex > (non-scalar) variable in the arguments of an XMLSubs function?? I am having > problems passing hashes to the function. > > Ex. > > my $hash = { blah blah blah }; > <my:sub args="$hash"> > some stuff > </my:sub>
This should work: <% my $hash = { key => 'value' }; %> <my:sub args=$hash> some stuff </my:sub> The trick with XMLSubs is that the argument values are treated as raw perl code. This will change in 3.0 with the new syntax of args="<%= $hash %>" to do the same thing. But the current method will have a XMLSubsPerlArgs flag that can be set to keep backwards compatible. Regards, Josh ________________________________________________________________ Josh Chamas, Founder phone:925-552-0128 Chamas Enterprises Inc. http://www.chamas.com NodeWorks Link Checking http://www.nodeworks.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]