[OT] perl file handle question

Randy J. Ray rjray at blackperl.com
Sat Mar 15 18:59:48 GMT 2008


> Is there a good clean way to have something that mostly behaves as a file
> handle, but has the file name squirrelled away in it somehow?

Subclass IO::File so that it squirrels away the filename when it creates the 
handle?

Write a TIEHANDLE class that does it?

-- 
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Randy J. Ray        Sunnyvale, CA    http://www.rjray.org   rjray at blackperl.com

Silicon Valley Scale Modelers: http://www.svsm.org


More information about the london.pm mailing list