A simple approach here is to do:
our $i //= 28;
That is still declare it as a package global variable to work around strict but only assign 28 if not already defined.
A simple approach here is to do:
our $i //= 28;
That is still declare it as a package global variable to work around strict but only assign 28 if not already defined.