in reply to why does removing "use 5.010;" break this?
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).
|
|---|