[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#778527: ITP: libfile-mktemp-perl -- Make temporary filename from template

On Mon, Feb 16, 2015 at 05:39:06PM +0100, gregor herrmann wrote:
> I'm wondering if adding a probably trivial 2-lines patch to this
> nagios plugin in order to make it use File::Temp (in perl core)
> instead of File::MkTemp (last release: 2000) would be a better way
> forward?
> Cheers,
> gregor

On Tue, Feb 17, 2015 at 10:07:23AM -0600, Gunnar Wolf wrote:
> Umh, what does it provide beyond what File::Temp (which is in the
> standard library) already does? 
> $ perl -e 'use File::Temp; $f=File::Temp->new(TEMPLATE=>"FooBarXXXX", DIR=>"/tmp", SUFFIX=>".foo"); print $f->filename,"\n";'
> /tmp/FooBarM1Xo.foo
> File::Temp not only creates unique strings, but also automatically
> handles the file or directory creation and remotion.

Thanks both of you for pointing that out. Sorry, I never bothered
to look into these details. It was in fact trivial to patch the
nagios plugin.

I guess it makes no sense to package the perl module, so I'm closing
this bug. Thanks again!



Raoul Gunnar Borenius                  Phone  : +49 711 63314-206
DFN-Verein, Geschäftsstelle Stuttgart  Fax    : +49 711 63314-133
Lindenspürstr.32                       E-Mail : borenius@dfn.de
D-70176 Stuttgart                      WWW    : http://www.dfn.de
--------------------- Deutsches Forschungsnetz ----------------------
--------- Germany's National Research and Education Network ---------

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply to: