in reply to Re^2: Returning a tied scalarin 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; [download]
--Ingo