"Kent, Mr. John" wrote:
> Greetings,
>
> Am using perl to dynamically write some JavaScript code
> that creates cool drop down button menus by Ger Versluis found
> on http://www.dynamicdrive.com ( for those who want to
> know why).
>
> Have a directory structure in which the target files are loca
On Monday, Nov 17, 2003, at 08:48 US/Pacific, Kent, Mr. John wrote:
[..]
For example
my(%HASH);
$HASH{$sub1}{$sub2}{$sub3} = $file1;
$HASH{$sub1}{$sub2}{$sub3}{$sub4}{$sub5} = $file2;
Here is what I tried, unsuccessfully
no strict 'refs'
# @TERMS is an array of each sub-directory name up to the o
Greetings,
Am using perl to dynamically write some JavaScript code
that creates cool drop down button menus by Ger Versluis found
on http://www.dynamicdrive.com ( for those who want to
know why).
Have a directory structure in which the target files are located
at various levels of sub-directo
Hendricks Paul D A1C 27 IS/INYS wrote:
> Hello beginners!
>
> Where do I start... I've already done some reading on this and I've played
> tag the wall with the forehead long enough.
> What I'm challenging myself to do is to create:
>a) a way to name a hash from user input
Don't.
If you re
>I've played
>tag the wall with the forehead long enough.
> a) a way to name a hash from user input
If you mean assign a value with in a hash using the user input, then:
my %hash
$key = ;
$val = ;
$hash{$key} = $val;
If you really want to let the user name your var
if you are just trying to access a set of nested arrays, use something like
my @parent=([1,2,3],
[7,8,9]);
print "$parent[0][1]\n";# outputs 2
print "$parent[1][2]\n";# outputs 9
## now to access the the info, use references
foreach my $num(@parent){
foreach my
Hendricks Paul D A1C 27 IS/INYS wrote:
> Hello beginners!
>
> Where do I start... I've already done some reading on this and I've
> played tag the wall with the forehead long enough.
Are you working through a book, like Learning Perl? If not, you should,
because it takes you step by step through
Hello beginners!
Where do I start... I've already done some reading on this and I've played
tag the wall with the forehead long enough.
What I'm challenging myself to do is to create:
a) a way to name a hash from user input
b) find a way to create a multi-level hash (hash within a hash)