From: Tim McGeary <[EMAIL PROTECTED]> > Can I dynamically declare an array by doing something like: > > for (keys %codes_hash) { > my @$_; > { > > so that I have an array for each code in my hash that I can push data > to whatever array is associated with the code that I searching on at > that iteration?
You can create dynamicaly named arrays, but 1) they can't be lexical 2) you don't want to!!! See "Why it's stupid to `use a variable as a variable name" by M-J. Dominus http://www.plover.com/~mjd/perl/varvarname.html Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]