Just a quick tangential comment: it should be possible to specify the maximum number of characters that a readline() will do on a filehandle. I couldn't find this in IO::Handle which seems to be where the user-defined line disciplines are inheriting their methods? Anyway, obvious application is to harden scripts against DoS attacks with endless inputs filling up the memory buffers while still allowing programmer to use <>. -- Peter Scott Pacific Systems Design Technologies
- Treating filehandles like strings Michael Mathews
- Re: Treating filehandles like strings Johan Vromans
- Re: Treating filehandles like strings Damian Conway
- Re: Treating filehandles like strings Peter Scott
- Re: Treating filehandles like strings Jon Ericson