Better pass in the $self for a method.
Jarkko Hietaniemi [Fri, 14 Mar 2003 15:16:18 +0000 (15:16 +0000)]
p4raw-id: //depot/perl@18982

lib/File/Spec/Unix.pm

index 3922f21..1b882df 100644 (file)
@@ -163,7 +163,8 @@ sub _tmpdir {
 
 sub tmpdir {
     return $tmpdir if defined $tmpdir;
-    $tmpdir = _tmpdir( $ENV{TMPDIR}, "/tmp" );
+    my $self = shift;
+    $tmpdir = $self->_tmpdir( $ENV{TMPDIR}, "/tmp" );
 }
 
 =item updir