Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: The best way to filter file I/O

by steves (Curate)
on Nov 06, 2004 at 16:15 UTC ( [id://405773]=note: print w/replies, xml ) Need Help??


in reply to The best way to filter file I/O

Good pointer -- Thanks. But I'm not seeing how that could be used on an already open file handle. This still may fit some of my specific needs better than a tie.

Replies are listed 'Best First'.
Re^2: The best way to filter file I/O
by Limbic~Region (Chancellor) on Nov 08, 2004 at 14:28 UTC
    steves,
    I almost missed this as you didn't reply directly to my node. So for some reason, you won't know at the time you open the file if you are going to need to ucase it or not. Probably the easiest thing to do this then is to tie all your filehandles up front. Default behavior is a normal filehandle, but you would add a method to toggle ucase which could be called at any time.

    Cheers - L~R

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://405773]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-24 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found