PerlOnTheWay has asked for the wisdom of the Perl Monks concerning the following question:
use strict; + use warnings; sub c { no warnings; print $d; } sub a{ no warnings; print $b; c; } a();
The first Use of uninitialized value can be fixed by no warnings, but the second is reporting a fatal error,why?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How exactly does no work?
by moritz (Cardinal) on Feb 16, 2012 at 11:24 UTC | |
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 | |
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 |