If you switch the order of the functions in the code, the spurious error message goes away.
By the way, I'd be interested to know how other versions of perl behave - IIRC there were some changes in 5.38 to error handling with the intent to show more readable error messages.
In reply to Re^2: Where does the spurious error message come from?
by kikuchiyo
in thread Where does the spurious error message come from?
by kikuchiyo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |