At 23.08 -0400 1999.06.25, Simply Hao wrote: >C.N.> The problem with this approach is it changes $/ >TIMTAODEE. This is what I do: > > my $separator = $/; > undef $/; > domylittlething; > $/ = $separator; That's just a longer way of doing local(). { local $/; doyopurlittlething; } # $/ restored when block ends 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. :) -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6']) ===== Want to unsubscribe from this list? ===== Send mail with body "unsubscribe" to macperl-request@macperl.org