Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2017-12-12 07:10 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (327 votes). Check out past polls.