in reply to why does removing "use 5.010;" break this?
Hi, please put your code inside code tags.
You can't use state or say as you have your code written, if you take out the use 5.010 statement.
As the documentation for state says:
state is available only if the state feature is enabled or if it is prefixed with CORE:: . The state feature is enabled automatically with a use v5.10 (or higher) declaration in the current scope
So you need to do one of:
Hope this helps!
|
|---|