- or download this
>perl -ce"sub foo {} fob 'abc'"
String found where operator expected at -e line 1, near "fob 'abc'"
...
>perl -ce"sub foo {} foo 'abc'"
-e syntax OK
- or download this
>perl -ce"sub foo {} foo { abc => 1 }"
-e syntax OK
>perl -ce"sub foo {} fob { abc => 1 }"
-e syntax OK
- or download this
>perl -MO=Deparse -ce"sub foo {} fob { abc => 1 }"
sub foo {
...
'abc', 1
}->fob;
-e syntax OK