in reply to Re^2: How not to use "our"?
in thread How not to use "our"?
But the main problem I have is the same problem I have with neither using strict, nor warnings.
vsuse strict; use warnings; my $chapters = { one => 'Chapter 1: AAA', two => 'Chapter 2: BBB', three => 'Chapter 3: CCC', }; say "We start with $chapters->{noe}"; # Compiler neither gives an er +ror, nor a warning.
You're free to not use strict or warnings, but I think they are sane things to use. And it doesn't make sense to put a "use strict;" in your code, and then use code that won't be checked by strict.package chapters; our $one = 'Chapter 1: AAA'; our $two = 'Chapter 2: BBB'; our $three = 'Chapter 3: CCC'; package main; use strict; use warnings; say "We start with $chapters::noe"; # Compile time error.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How not to use "our"?
by Anonymous Monk on Nov 30, 2010 at 16:01 UTC | |
by JavaFan (Canon) on Nov 30, 2010 at 16:39 UTC |