Rob Dixon wrote:
Along these lines, can someone explain to me whyuse strict 'vars'; my $name = 'data'; print foreach @$name; produces no error, when use strict 'vars'; print foreach @data; does?
Because in the first case, the variable you use had been declared, and you hadn't enabled strict 'refs'.
-- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/