At 9:56 am -0500 2/2/01, Chris Nandor wrote:
| Also note this opens the file in the current working directory. I
| sometimes prefer something like:
|
| use File::Spec::Functions qw(:DEFAULT tmpdir);
| use Symbol;
| $fh = gensym;
| do { $name = catdir(tmpdir, tmpnam) }
| until
At 00:28 -0600 02.02.2001, Andy Berkvam wrote:
>do { $name = tmpnam() }
> until $fh = IO::File->new($name, O_RDWR|O_CREAT|O_EXCL);
Weird. I have no idea why, but this is opening a file read-only (a -w flag
would have told you that :).
Here is a workaround:
use Symbol;
$fh = gensym;
do {
'lo all,
I took a look in my copy of the Perl Cookbook for temp file recipes.
(I love that book.) They have two examples. (I have modified them a
little here.) The first one is good to use as long as you don't need to
know the name of the temp file.
use IO::File;
$fh = IO::File->new_tmpfil
At 4:00 pm -0800 1/2/01, Todd Richmond wrote:
| On 2/1/01 2:50 PM, "John Delacour" <[EMAIL PROTECTED]> wrote:
| > $tempdir = $ENV{TMPDIR};
| > mkdir $tempdir, 0; #creates if necessary
| > $fout = "$tempdir" . "temp.txt";
| > open FOUT, ">$fout";
| >
|
On 2/1/01 2:50 PM, "John Delacour" <[EMAIL PROTECTED]> wrote:
> At 12:10 pm -0800 1/2/01, Todd Richmond wrote:
>
> | What's the best way to do temporary file creation? BioPerl seems to have
> | chosen File::Temp, which requires File::Spec, which requires Errno.pm. The
> | process fails at
At 12:10 pm -0800 1/2/01, Todd Richmond wrote:
| What's the best way to do temporary file creation? BioPerl seems to have
| chosen File::Temp, which requires File::Spec, which requires Errno.pm. The
| process fails at the end because 'archname' is not defined for MacOS.
I do
$tem
I'm helping test/port the Bioperl package to MacPerl and I've run into a few
problems that have prompted some questions.
Is there an equivalent to "make test" under MacPerl? I've used Chris
Nandor's excellent "untarzipme.plx" and "installme.plx", but there doesn't
seem to be a "testme.plx". I've