digger has asked for the wisdom of the Perl Monks concerning the following question:
Thanks much, and please be gentle :)...snip... foreach $dir(@dirlist) { my $newdir=($dest."\/".$dir); if (-f $absdir."\/".$dir) { %info=( driver =>"working", filename=> "<a href=\"../drivers$newdir\">$dir</a><BR>", desc =>"working on this, too" ); } else { %info=( driver =>"working", filename =>"<a href=\"/cgi/index.cgi?$newdir\">$dir</a><BR>", desc =>"working on this, too" ); } push(@tmplt_list, \%info); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hashrefs and arrayrefs
by stephen (Priest) on Apr 19, 2002 at 14:17 UTC | |
|
Re: Hashrefs and arrayrefs
by kappa (Chaplain) on Apr 19, 2002 at 14:40 UTC | |
|
Re: Hashrefs and arrayrefs
by digger (Friar) on Apr 19, 2002 at 15:11 UTC | |
by Juerd (Abbot) on Apr 19, 2002 at 15:16 UTC |