You could do something using tie. The docs for tie in 5.005_03 cover tieing filehandles but it's not mentioned in Perl In A Nutshell so I'm not sure when this support was added.
Update:
In fact there seems to be a Tie::Handle module that would serve as a base class for this. It's part of the standard distribution.
In reply to Re: pointing a filehandle at a scalar or array ?
by davorg
in thread pointing a filehandle at a scalar or array ?
by lindex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |