- or download this
use strict;
use warnings;
use diagnostics;
- or download this
$ perl -Mstrict -Mwarnings -le 'for (0..1) { our $x = $_ } print $x'
Variable "$x" is not imported at -e line 1.
Global symbol "$x" requires explicit package name at -e line 1.
Execution of -e aborted due to compilation errors.
- or download this
$ perl -Mstrict -Mwarnings -le 'use diagnostics; for (0..1) { our $x =
+ $_ } print $x'
Variable "$x" is not imported at -e line 1 (#1)
...
Global symbol "$x" requires explicit package name at -e line 1.
Execution of -e aborted due to compilation errors.
at -e line 1.