in reply to can create with File::Temp but not unlink

Hi!

Eeeeehm.. Use 'unlink' instead of 'unlink0' ?

Ahem, my bad... didn't know much about the package ;))

How about importing unlink0 ? : use File::Temp qw(tempfile unlink0);

GreetZ!,

print "profeth still\n" if /bird|devil/;
  • Comment on Re: can create with File::Temp but not unlink

Replies are listed 'Best First'.
Re: (2) can create with File::Temp but not unlink (not exported)
by ybiC (Prior) on Jan 19, 2001 at 17:31 UTC
    Thanks for the quick answer, ChaOs.   8^)
    But attempting to import unlink via use vars qw(); results in the following error:   8^(

    "unlink" is not exported by File::Temp at filetemptest.pl line n
    Compilation aborted.

        cheers,
        Don
        striving for Perl Adept
        (it's pronounced "why-bick")

      Hi,

      Eeehm unlink is exported by main, I think,
      but try and import unlink0 from File::Temp
      Or try to import just everything exportable
      Without specifying the functions

      GreetZ!,
        ChOas

      print "profeth still\n" if /bird|devil/;