Re: [Perl-unix-users] create variables from hash's keys & values

2005-04-05 Thread Marcos Lorenzo de Santiago
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 $Bill Luebkert <[EMAIL PROTECTED]> wrote [1:46am -0700] BL > Marcos Lorenzo de Santiago wrote: BL > BL > > But why? Is there any reason for not doing this? I guess maybe security BL > > problems? or unexpected script behaviour? BL >

Re: [Perl-unix-users] create variables from hash's keys & values

2005-04-05 Thread $Bill Luebkert
Marcos Lorenzo de Santiago wrote: > But why? Is there any reason for not doing this? I guess maybe security > problems? or unexpected script behaviour? Good start. If you went to the trouble of verifying each and every argument before you created a var out of it (maybe using a pre-defined list o

Re: [Perl-unix-users] create variables from hash's keys & values

2005-04-05 Thread Marcos Lorenzo de Santiago
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 $Bill Luebkert <[EMAIL PROTECTED]> wrote [12:52am -0700] BL > Marcos Lorenzo de Santiago wrote: BL > BL > > -BEGIN PGP SIGNED MESSAGE- BL > > Hash: SHA1 BL > > BL > > I'd like to know if this is possible and how would it be

Re: [Perl-unix-users] create variables from hash's keys & values

2005-04-05 Thread $Bill Luebkert
Marcos Lorenzo de Santiago wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I'd like to know if this is possible and how would it be done. I have > a hash like: > > my %hash=( var1 => 1, > var2 => 2, > var3 => 3 >); > > and I would like to know

[Perl-unix-users] create variables from hash's keys & values

2005-04-05 Thread Marcos Lorenzo de Santiago
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'd like to know if this is possible and how would it be done. I have a hash like: my %hash=( var1 => 1, var2 => 2, var3 => 3 ); and I would like to know how to set variables with each key & value: foreach my $keys (key