- or download this
$ perl -e 'say "fred"'
String found where operator expected at -e line 1, near "say "fred""
...
Execution of -e aborted due to compilation errors.
$ perl -E 'say "fred"'
fred
- or download this
$ perl -e 'my $x = [qw{a b c}]; print "$x->@*\n"'
ARRAY(0x7f82b20040b0)->@*
$ perl -E 'my $x = [qw{a b c}]; print "$x->@*\n"'
a b c
- or download this
$ perlbrew switch perl-5.14.0t
$ perl -E 'my $x = [qw{a b c}]; print "$x->@*\n"'
ARRAY(0x7fe830004ae8)->@*
- or download this
$ perlbrew switch perl-5.14.0t
$ perl -E 'say "fred"'
fred