On Sat, 26 Jun 1999, Chris Nandor wrote: > > I like dynamic scoping for stuff like this. Matthias was recently > lamenting, though, that $/ was not per-filehandle like $| is. He was also > wishing that you could make $/ a regex or coderef. :) > I'm personally surprised it hasn't already happened. It's mentioned by Larry Wall as the one thing that awk does better, and that was brought up a long time ago. If for no other reason than to be able to set $/ to handle all of CR, LF and CR-LF, it would be worth its weight in gold. One immediate application of this would be to handling PDF files. Once you've seek'ed to a PDF object using the internal cross-reference table, it's very natural to read line by line to actually get the object. Problem being, in PDF allowable line-ends are precisely CR, LF or CR-LF. If one could just set $/ to a regexp on all three, life would be much easier. That's just one example. Arved ===== Want to unsubscribe from this list? ===== Send mail with body "unsubscribe" to macperl-request@macperl.org