say and state are "features" that need to be explicitly enabled, either with use feature qw/say state/;, but also use with only a version number will enable the "feature bundle" associated with that Perl version, which for v5.10 happens to be "say state switch" (Update: Forgot array_base, since it wasn't added until v5.16, thanks for the reminder ikegami).
In reply to Re: why does removing "use 5.010;" break this?
by haukex
in thread why does removing "use 5.010;" break this?
by bairdbe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |