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