[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] [perl] and $Safe{'session'}->{arg}
****** message to minivend-users from "Christopher P. Lindsey" <lindsey@mallorn.com> ******
> I'm trying to access [data session arg] from a [perl] tag. Why doesn't
> this work?
>
> [perl]
> my($foo)=$Safe{'session'}->{arg};
> "foo is $foo<BR>";
> [/perl]
I've had problems accessing [data session arg], but putting it into a
scratch variable first seems to work:
[set name=argument interpolate=1][data session arg][/set]
[perl arg="scratch"]
my($foo)=$Safe{'scratch'}->{argument};
"$foo<BR>";
[/perl]
Chris
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list