in reply to Re^2: Returning a tied scalar
in thread Returning a tied scalar

Of course, you can do it by using subtypes, too :)

my subtype HasToBeDefined of Scalar where { defined $^a }; my HasToBeDefined $checked;

--Ingo