in reply to How exactly does no work?
Warnings are not errors, and errors are not warnings.
The fatal error comes from strict because you didn't declare $d. And because it comes from strict and not warnings, no warnings; has no effect on it. While you can say no strict 'vars';, it's much better to just declare $d with my.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How exactly does no work?
by PerlOnTheWay (Monk) on Feb 16, 2012 at 11:29 UTC | |
by moritz (Cardinal) on Feb 16, 2012 at 11:33 UTC | |
by choroba (Cardinal) on Feb 16, 2012 at 11:36 UTC | |
|
Re^2: How exactly does no work?
by PerlOnTheWay (Monk) on Feb 16, 2012 at 11:37 UTC | |
by ww (Archbishop) on Feb 16, 2012 at 11:40 UTC | |
by locked_user sundialsvc4 (Abbot) on Feb 16, 2012 at 13:49 UTC | |
by chromatic (Archbishop) on Feb 17, 2012 at 01:08 UTC | |
by PerlOnTheWay (Monk) on Feb 16, 2012 at 11:43 UTC | |
by ww (Archbishop) on Feb 16, 2012 at 11:51 UTC | |
by rovf (Priest) on Feb 16, 2012 at 13:58 UTC | |
by Anonymous Monk on Feb 17, 2012 at 00:39 UTC |