[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-Forum] tricky scalar? Assigning to.. AKUT



On Thu, May 18, 2000 at 05:03:39PM +0200, Jimmy Lantz wrote:

> Now I have scalars which has the same name in the incoming form values
> (%in) there for I need to assign the following scenario.:
> ${now2}name = $in{"${now2}name"}  
> that is :
> a scalar with a numer and a name together has to be assigned the value 
> of the same scalarname in the incoming hash.


I'm not sure why you need to do this, since you already have it with the
hash.  You can use symbolic references:

$"${now2}Delmomentantal" = $in{$delmomentvariabel};

And now your hash is the symbol table, so you're not really gaining
anything.

If you need another hash, just do:

$new{"${now2}Delmomentantal"} = $in{$delmomentvariabel};

or something like that.


Ronald


P.S.  I'll get back to that earlier thread at some point.

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-forum-request@macperl.org