Skip Menu |

This queue is for tickets about the File-Temp CPAN distribution.

Report information
The Basics
Id: 64508
Status: resolved
Priority: 0/
Queue: File-Temp

People
Owner: Nobody in particular
Requestors: Angelyn.W.Moore [...] jpl.nasa.gov
Cc:
AdminCc:

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



CC: "Angelyn W. Moore" <Angelyn.W.Moore [...] jpl.nasa.gov>
Subject: template doesn't work with tempdir
Date: Wed, 05 Jan 2011 14:01:16 -0800
To: bug-File-Temp [...] rt.cpan.org
From: "Angelyn W. Moore" <Angelyn.W.Moore [...] jpl.nasa.gov>
Ubuntu 10.04.1 LTS Perl 5.10.1 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 10:14:11 UTC 2010 x86_64 GNU/Linux File-Temp 0.22 Example code: #!/bin/perl use File::Temp qw/ tempdir /; $template='fooXXXXX'; $tempdir=File::Temp->tempdir($template); Expected behavior: creation of a directory named 'foo' + 5 random characters Observed behavior: creation of a directory named 10 random characters (the given template fooXXXXX is ignored) Note: This comment at line 1486 seems to be relevant: # Can not check for argument count since we can have any # number of args
The correct method is "newdir" not "tempdir". I have added a patch to the repo that issues a more helpful warning in this case.