From: Dana Smith To: pm-help@listserv.oit.unc.edu Subject: mktemp? Date: Fri, 6 Aug 1999 09:41:33 -0400 Is something like mktemp() supported in Perl? I looked in Camel but didn't see anything ... > Dana L. Smith > SouthPeak Interactive > (919) 677-4499 x4116 > Dana.Smith@southpeak.com > > Date: Fri, 06 Aug 1999 10:02:47 -0400 From: Doug Seay To: dasmit@southpeak.com CC: pm-help@listserv.oit.unc.edu Subject: Re: mktemp? Dana Smith wrote: > > Is something like mktemp() supported in Perl? I looked in Camel but didn't see anything ... I don't see mktemp() itself, but some of its close brethern are in the POSIX module. perldoc -m POSIX has > =item tmpfile > > Use method C instead. > > =item tmpnam > > Returns a name for a temporary file. > > $tmpfile = POSIX::tmpnam(); Is this good enough? - doug To: dms@rtp-bosch.com Cc: dasmit@southpeak.com, pm-help@listserv.oit.unc.edu Subject: Re: mktemp? Date: Fri, 06 Aug 1999 10:13:16 -0400 From: Scott Stonefield >>>>> "Doug" == Doug Seay writes: Yea, the Perl Cook book suggests using IO::File; Then getting the $FH = IO::File->new_tempfile method. This tmp file will be cleaned up after the program exits. -Scott Doug> Dana Smith wrote: >> >> Is something like mktemp() supported in Perl? I looked in Camel >> but didn't see anything ... Doug> I don't see mktemp() itself, but some of its close brethern Doug> are in the POSIX module. Doug> perldoc -m POSIX has >> =item tmpfile >> >> Use method C instead. >> >> =item tmpnam >> >> Returns a name for a temporary file. >> >> $tmpfile = POSIX::tmpnam(); Doug> Is this good enough? Doug> - doug