Rob Dixon wrote:
Along these lines, can someone explain to me why

  use 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/


Reply via email to