himanshu.padmanabhi has asked for the wisdom of the Perl Monks concerning the following question:

my $parser = XML::LibXML->new(); my $xslt = XML::LibXSLT->new(); my $source = $parser->parse_file($xmlfile); my $style_doc = $parser->parse_file($xslfile); my $stylesheet = $xslt->parse_stylesheet($style_doc); my $results = $stylesheet->transform($source, args => "' '",val => "' +2'",myname => "'$in{'myname'}'",idx => "'$in{'idx'}'"); print $stylesheet->output_string($results);
I getting error at line $stylesheet->transform that
Unfinished literal runtime error Evaluating user parameter myname failed
what can be the reason? This is $in Dumper
Dumper(idx=8&args=&myname=ABCD.txt&idx=+&myname=+)
is that because of two values of 'myname' in $in?

Replies are listed 'Best First'.
Re: Evaluating user parameter ... failed.
by Bloodnok (Vicar) on Mar 03, 2009 at 10:18 UTC
    Try using strictures (use warnings; use strict;) - a cursory glance suggests %in (as referred to in the problematic line) isn't defined.

    A user level that continues to overstate my experience :-))