I think what you were looking for is
$ perl -E 'BEGIN {our $debug = 1;} use if $debug // 0, warnings; say u +ndef' Use of uninitialized value in say at -e line 1.
although I would be inclined to go with an environment variable instead, to avoid having to edit the source code:
$ debug=1 perl -E 'use if $ENV{debug} // 0, warnings; say undef' Use of uninitialized value in say at -e line 1.
In reply to Re^2: use of "use X"
by quester
in thread use of "use X"
by bbfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |