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()
Download (untitled) / with headers
text/plain 303b
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
Download (untitled) / with headers
text/plain 660b
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.
Download (untitled) / with headers
text/plain 112b
Hi Mark, Thanks for the lesson. Closing this ticket. William -- Knowmad Technologies http://www.knowmad.com


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.