in reply to Re: Warning for "unused sub declarations"?
in thread Warning for "unused sub declarations"?
Run this:
Now uncomment out the use strict; and run it. FWIW, i do the same as you ... but yes, there are consequences.#use strict; use warnings; sub bar { print $foo; } my $foo = 1; foo(); bar(); sub foo { print $foo; }
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Warning for "unused sub declarations"?
by thor (Priest) on May 19, 2005 at 23:15 UTC | |
by jeffa (Bishop) on May 20, 2005 at 12:54 UTC |