On Mon, Dec 02, 2002 at 08:39:17PM -0500, Brad Smith wrote:
> foreach $i (@tables) {
> print "$tables[$i]<br>";
> }
Hmmm ... surprised you get anything here. @tables is an array.
@tables = qw/a b c/;
foreach $i (@tables) {
first time in the loop $i == 'a';
So $tables[$i] == $tables['a']
always test your code using perl -w, in fact the first few lines of every perl
scripts should be
#!perl -w
use warnings;
use strict;
--
Thomas A. Lowery
See DBI/FAQ http://www.xmlproj.com/cgi/fom.cgi
