James, et al --
...and then James Edward Gray II said...
%
% On Sunday, August 17, 2003, at 06:15 AM, David T-G wrote:
%
...
% > 46 &parseit
% > 47 (
% > 48 {ASCII=>$ascii,HTML=>$html},
% > 49
% >{flag=>$flag,EMAIL=>$email,NAME_FIRST=>$fn,NAME_LAST=>$ln}
% > 50 ) ;
%
% This is passing two hash references, just like you want. Drop the
Well, maybe like *you* think I want, but *I* didn't know I wanted it :-)
% ampersand on the call though, we don't do that anymore. ;)
So I just heard. I'm gonna have to learn why :-)
%
% > 51 }
% > ...
% > 60 # parse function
% > 61 #sub parseit(my %template,my %userdata)
% > 62 sub parseit
% > 63 {
% > 64 my (%template,%userdata) = @_ ;
%
% You passed in references, not hashes. Try getting them back like this,
% to minimize the amount of work you have to do with the references:
%
% sub parse {
% my %template = %{shift()};
% my %userdata = %{shift()};
% #...
% }
Thanks. That looks like it should work much better than my attempts :-)
HAND
:-D
--
David T-G * There is too much animal courage in
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
pgp00000.pgp
Description: PGP signature
