- or download this
$ alias perle
alias perle='perl -Mstrict -Mwarnings -Mautodie=:all -E'
$ perl -v | head -2 | tail -1
This is perl 5, version 24, subversion 0 (v5.24.0) built for darwin-th
+read-multi-2level
- or download this
package xyz;
...
}
1;
- or download this
$ perle 'BEGIN { @INC = qw{old new .} } use xyz 1.0; say $xyz::VERSION
+'
import called with args: xyz
...
$ perle 'BEGIN { @INC = qw{old new .} } use xyz qw{a b c}; say $xyz::V
+ERSION'
import called with args: xyz a b c
1.0
- or download this
package xyz;
...
}
1;
- or download this
$ perle 'BEGIN { @INC = qw{old new .} } use xyz 2.0; say $xyz::VERSION
+'
xyz version 2 required--this is only version 1.0 at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
- or download this
package Bleed::xyz;
...
}
1;
- or download this
$ perle 'BEGIN { @INC = qw{old new .} } use Bleed::xyz 2.0; say $xyz::
+VERSION'
import called with args: xyz
...
$ perle 'BEGIN { @INC = qw{old new .} } use Bleed::xyz qw{a b c}; say
+$xyz::VERSION'
import called with args: xyz a b c
2.0