in reply to hash name as a variable?
$DB_name =~ /[ISWLIVE ISWTEST ISWTEACH]/
$DB_name =~ /(ISWLIVE|ISWTEST|ISWTEACH)/
I would create a reference to hash with:each %$DB_name
$HREF = eval "\\\%$DB_name"; ... if ($HREF->{key} ...)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: hash name as a variable?
by samtregar (Abbot) on Sep 15, 2004 at 20:54 UTC | |
by jeremyh (Beadle) on Sep 15, 2004 at 21:05 UTC |