in reply to wondering why does 5.10 features are not working

For backward compatibility, the features that involve a new keyword need to be enabled explicitly, either via use 5.010; or use feature ':5.10'; or use feature qw/say switch state/;

In onliners, using -E instead of -e also enables all new features:

perl -wE 'say 42'

Replies are listed 'Best First'.
Re^2: wondering why does 5.10 features are not working
by Anonymous Monk on Sep 23, 2011 at 20:37 UTC
    This is why I like perl very much ! Instant & good responses !
    Thank you very much !