You guys are outstanding.
Thanks for your help!
Matt
-----Original Message-----
From: Sam Tregar [mailto:suppressed
Sent: Friday, February 11, 2005 3:06 PM
To: Matt Myhre
Cc: suppressed
Subject: Re: [cgiapp] passing perl variables
On Fri, 11 Feb 2005, Matt Myhre wrote:
> Is there a way to pass the values (i.e. in a hash) from mode 2 to mode 3
> without creating form fields for each one?
Sessions will work, but if you have no other need for session data
then they're a pretty heavy solution. An easier alternative is to
just encode the data. For example:
use MIME::Base64;
use Storable;
# in mode2, encode the data
$template->param(data => encode_bas64(freeze(\%hash)));
# in mode3, decode the data
$hash_ref = thaw(decode_base64($q->param('data')));
-sam
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.