Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: The best way to filter file I/O

by steves (Curate)
on Nov 06, 2004 at 16:15 UTC ( #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
    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?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2016-10-26 06:42 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (336 votes). Check out past polls.