[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

[ID 20000126.002] setting $handle->input_record_separator changes global $/





Arjen Bax writes:
| Calling $handle->input_record_separator(undef) for an object of type
| FileHandle seems to change the global i.r.s. $/, causing subsequently
| opened files to be opened in "slurp" mode.
| 
| This bug was previously reported in 1997 (see
| http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/1997-11/msg01170.html
| ), but I couldn't find any record that it was solved.

Because it's not a bug.

1)  You're using a FileHandle.

From the FileHandle manpage:

>       NOTE: This class is now a front-end to the IO::* classes.

From the IO::Handle manpage:

>       The following methods are not supported on a per-filehandle basis.
>           IO::Handle->input_record_separator( [STR] )       $/

The manual is fine.  Please read it.

Mx.


References to:
Arjen Bax <arjen.bax@cmg.nl>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]