Subject: | typo in example |
Date: | Wed, 9 Mar 2011 17:17:35 +0100 |
To: | bug-File-Tempdir [...] rt.cpan.org |
From: | Zeno Gantner <zeno.gantner [...] gmail.com> |
Hello,
I guess you have a tiny typo in the example of File-Tempdir-0.02:
=============================================
use File::Tempdir;
{
my $tmpdir = File::Tempdir->new()
my $dir = $tmpdir->name;
}
# the directory has been trashed
my $adir = 'any directory';
{
my $tmpdir = File::Tempdir->new($dir)
my $dir = $tmpdir->name;
}
# the directory has not been trashed
=============================================
It should be "my $tmpdir = File::Tempdir->new($adir)", shouldn't it?
Best regards,
Zeno
--
MyMediaLite Recommender System Library: http://ismll.de/mymedialite