Simply Hao <[EMAIL PROTECTED]> writes:
>> But there is no way that I want under, any circumstance, _all_
>> line endings active at the same time.
>
>Why not?

Because native tools won't behave like that and we want to mimic them
(at least as an option).

>
>Well, how about this proposal then?
>
>DOS, Mac, Unix:
>
>    use newlines "\015\012", "\012", "\015";
>
>OS/390:
>
>    use newlines "\r", "\025";
>
>Weird OS:
>
>    use newlines "\t";
>
>Something like that?

Maybe. But rather than spell that out as literals what one normal wants
is 

my $fh : newlines=unix,dos,UNICODE = open (...);

where 'unix' knows that means "\012" even if perl is running on Mac.


>
>Okay, maybe what I really want is $/ to be a regex.

No - this is almost certainly NOT a global 'use' option but a "mode" of 
a particular handle.

We want $/ to go away and become a property of the handle.
Perhaps $/ or the 'use' can set the _default_ which is passed to the "open"
when nothing more specific is given.


>
>-Hao
-- 
Nick Ing-Simmons

Reply via email to