in reply to Setting a filehandle attribute for just one filehandle

You can do this:

use IO::Handle; $fh->input_record_separator( "<!>" );

update: princepawn is right, there's only one $/ . I suppose you could tie the handle and change $/ around each READLINE.

Replies are listed 'Best First'.
Re: Re: Setting a filehandle attribute for just one filehandle
by princepawn (Parson) on Jun 27, 2001 at 04:48 UTC
    I'm afriad I don't agree with you. Per the IO::Handle manpage:
    The following methods are not supported on a per-filehandle basis. IO::Handle->format_line_break_characters( [STR] ) $: IO::Handle->format_formfeed( [STR]) $^L IO::Handle->output_field_separator( [STR] ) $, IO::Handle->output_record_separator( [STR] ) $\ IO::Handle->input_record_separator( [STR] ) $/