in reply to Namespace variable gathering
This line sets all of the variable types with the name foo to the values of the corresponding variable types with the name bar*foo = *bar;
Or do you mean all of a hash's or array's values? For this you could look into hash and array slices.
Note that with the hash slice we are using the symbol normally associated with arrays. That is because this the left operand is list of keys.@arr[3,4,5,6] = qw(just another perl hacker); @hash{'key2','key3','key4','key5'} = qw(jay dave guy);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Namespace variable gathering
by belg4mit (Prior) on Apr 24, 2002 at 21:37 UTC |