Subject: If no parameters,then what should be sent
From: himanshu padmanabhi <himanshu.padmanabhi@xxxxxxxxx>
Date: Tue, 24 Feb 2009 19:00:40 +0530
|
Hi all,
This is my code.What should I pass if I don't have any value to pass?
Should I pass blank value because not including parameter gives me error.
if($in{'flag'} eq "2") {
my $results = $stylesheet->transform($source, args =>
"'$in{'args'}'",val => "'1'",cnt => "' '",idx => "' '",sidx => "' '",
new => "' '");
print $stylesheet->output_string($results);
}else{
my $results = $stylesheet->transform($source, args => "'
'",val => "'2'",cnt => "'$in{'cnt'}'",idx => "'$in{'idx'}'",sidx =>
"'$in{'sidx'}'",new => "'$in{'new'}'");
print $stylesheet->output_string($results);
}
btw,what is the meaning of this error,
Unfinished literal
runtime error
Evaluating user parameter cnt failed
means variable 'cnt' is passed though it is not exising?
----------------------------
Regards,
Himanshu Padmanabhi
|