Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
but I dont know hoe to create an array with $val as name. "@$val" doesn't seems right. Any help would be appreciated.foreach $val(@array){ here I need to create an array with the name of $val like the below @$val = connection to database($val) which returns an array }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: naming array from a scalar
by moritz (Cardinal) on Nov 09, 2009 at 23:56 UTC | |
|
Re: naming array from a scalar
by colwellj (Monk) on Nov 10, 2009 at 00:02 UTC | |
by Anonymous Monk on Nov 10, 2009 at 01:29 UTC | |
|
Re: naming array from a scalar
by shmem (Chancellor) on Nov 10, 2009 at 00:06 UTC | |
|
Re: naming array from a scalar
by AnomalousMonk (Archbishop) on Nov 10, 2009 at 00:56 UTC |