From: David Dyck Date: Mon, 20 Nov 2000 11:43:40 +0000 (-0800) Subject: [ID 20001120.010] typo in lib/Cwd.pm broke Cwd::chdir X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2297871342e2615ecc059701f2c91658717cb808;p=p5sagit%2Fp5-mst-13.2.git [ID 20001120.010] typo in lib/Cwd.pm broke Cwd::chdir Message-Id: <200011201943.LAA08451@dd.tc.fluke.com> p4raw-id: //depot/perl@7785 --- diff --git a/lib/Cwd.pm b/lib/Cwd.pm index 1ed603b..840e2a6 100644 --- a/lib/Cwd.pm +++ b/lib/Cwd.pm @@ -188,7 +188,7 @@ sub chdir_init { } sub chdir { - my $newdir = @? ? shift : ''; # allow for no arg (chdir to HOME dir) + my $newdir = @_ ? shift : ''; # allow for no arg (chdir to HOME dir) $newdir =~ s|///*|/|g unless $^O eq 'MSWin32'; chdir_init() unless $chdir_init; return 0 unless CORE::chdir $newdir;