in reply to use warnings and debug messages
Odd objective IMO. I like being warned when something I expect to have a value doesn't. But you can always turn off warnings in your debug sub if you don't like to see them:
Output:use 5.010; use strict; use warnings; my $x = 42; my $y; my $z; debug($x, $y); say $z; sub debug { no warnings 'uninitialized'; say join ',', @_; }
42, Use of uninitialized value $z in say at szab.pl line 11.
Hope this helps!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: use warnings and debug messages
by szabgab (Priest) on Mar 06, 2017 at 13:14 UTC | |
by ww (Archbishop) on Mar 06, 2017 at 14:29 UTC | |
by stevieb (Canon) on Mar 06, 2017 at 14:30 UTC | |
by szabgab (Priest) on Mar 07, 2017 at 19:48 UTC | |
by LanX (Saint) on Mar 08, 2017 at 01:50 UTC | |
by stevieb (Canon) on Mar 08, 2017 at 00:52 UTC | |
by afoken (Chancellor) on Mar 06, 2017 at 18:30 UTC | |
by LanX (Saint) on Mar 07, 2017 at 03:49 UTC |