- or download this
$ perl -Mstrict -Mwarnings -le '
use Getopt::Long;
...
test a
test b
test c
- or download this
$ perl -Mstrict -Mwarnings -le '
...
' -- --test 'a b'
--test requires 3 values. Got: a b
- or download this
$ perl -Mstrict -Mwarnings -le '
...
' -- --test 'a b c d'
--test requires 3 values. Got: a b c d
- or download this
$ perl -Mstrict -Mwarnings -E '
use Getopt::Long;
...
2: >>>b<<<
3: >>>test<<<
3: >>>c<<<