##
LINE: while(<>) {
perl -nle '$t+=$_}{print$t
}
####
perl -wnE '$s+=$_}{say$s'
####
Can't call method "say" without a package or object reference at -e line 1, <> line 2.
####
perl -wnE '$s+=$_;END{say$s}'
####
$ perl -MO=Deparse -wnE '$s+=$_}{say$s'
####
BEGIN { $^W = 1; }
LINE: while (defined($_ = )) {
BEGIN {
$^H{'feature_say'} = q(1);
$^H{'feature_state'} = q(1);
$^H{'feature_switch'} = q(1);
}
$s += $_;
}
{
$s->say;
}
-e syntax OK
$