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 |