Mailing List Archive

Patch for Cwd.pl (portability, speed ups, tidy ups etc)
Re: Patch for Cwd.pl (portability, speed ups, tidy ups etc) [ In reply to ]
: Uses chomp to be DOS+NT safe.

That's likely to be LESS safe. chomp() only chops $/ off the end, so if
they've changed $/, tough luck. Whereas `pwd` may already have chopped
the return out because of non-binmode processing, so chop() may work
fine regardless.

Larry
Re: Patch for Cwd.pl (portability, speed ups, tidy ups etc) [ In reply to ]