Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 14393
Status: resolved
Priority: 0/
Queue: CGI

People
Owner: Nobody in particular
Requestors: william [...] knowmad.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Typo in find_tempdir()
Hi Lincoln, Unless I'm mistaken, there appears to be a missing $ in the loop which clears out entries in $TMPDIRECTORY that are not directories and are not writeable. This occurs at line 3777 in v3.10: do {$TMPDIRECTORY = $_; last} if -d $_ && -w _; The last _ looks like it should be $_. William
On Wed Aug 31 23:56:16 2005, guest wrote: Show quoted text
> Hi Lincoln, > > Unless I'm mistaken, there appears to be a missing $ in the loop which > clears out entries in $TMPDIRECTORY that are not directories and are > not writeable. This occurs at line 3777 in v3.10: > > do {$TMPDIRECTORY = $_; last} if -d $_ && -w _; > > The last _ looks like it should be $_.
William, This is not a bug, but an uncommon perlism. It's explained in "perldoc -f -w" Search in that document for "any of the file tests" and start reading from there. In this context, "_" will work the same as "$_", but according to the documentation will be faster, due to a saved system call.
Hi Mark, Thanks for the lesson. Closing this ticket. William -- Knowmad Technologies http://www.knowmad.com