in reply to Re^2: sub that sets $_
in thread sub that sets $_

Well, it may be possible with a tied hash. Would it be worth, though? (except for fun, that is - I've never played with this "kinda things" myself, but I'm tempted!)

UPDATE:as per revdiablo's remark, s/hash/filehandle/. Just a typo, and only because tied hashes are IMHO the kind of tied objects one most often can hear about...