delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2008/04/17/02:16:35

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
NNTP-Posting-Date: Thu, 17 Apr 2008 01:10:37 -0500
From: "Robbie Hatley" <lonewolf AT well DOT com>
Newsgroups: comp.lang.perl.misc,comp.os.msdos.djgpp
Subject: Perldoc error: "Could not create temp file"
Date: Wed, 16 Apr 2008 23:11:17 -0700
Organization: Tustin Free Zone
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1914
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1914
Message-ID: <zd6dnbRZ8J5AdJvVnZ2dnUVZ_rignZ2d@giganews.com>
Lines: 62
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-rD92g8LycVeRCJaZoToVq5V3uBZ4Rh48lXJzH58dJllHbC6Dbbfdf8gaZUBu9ZO7ZEXx9ooG6u1EaAg!eVEt9svgfqT4LGzCHrFbuJGLL/998EKchVOlEpAs30XyVjY8I2a6p57H9RJZHvI5/PtdTOcnI3mI
X-Complaints-To: abuse AT giganews DOT com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.39
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Greetings, groups.  I'm running Windows 2000 and djgpp, and trying
to read the built-in perl documentation via "perldoc", but it's
not working.  Perldoc fails both when invoked from the Windows
command processor (cmd.exe) or from Bash.  In either case, I get
an error like this:

wd=C:\djgpp\bin
%bash
bash-2.04$ perldoc perl
Error in tempfile() using c:/djgpp/tmp/XXXXXXXXXX: Could not create temp file c:
/djgpp/tmp/zkQ06tqlcH: Invalid argument (EINVAL) at /dev/env/DJDIR/lib/perl5/Pod
/Perldoc.pm line 1483
bash-2.04$ exit
exit
wd=C:\djgpp\bin
%perl perldoc perl
Error in tempfile() using C:/TEMP/XXXXXXXXXX: Could not create temp file C:/TEMP
/0mfgo64w9W: Invalid argument (EINVAL) at /dev/env/DJDIR/lib/perl5/Pod/Perldoc.p
m line 1483
wd=C:\djgpp\bin
%

Now, when I look at perldoc.pm line 1483, I see:

#..........................................................................
sub new_tempfile {    # $self->new_tempfile( [$suffix, [$infix] ] )
  my $self = shift;

  ++$Temp_Files_Created;

  if( IS_MSWin32 ) {
    my @out = $self->MSWin_perldoc_tempfile(@_);
    return @out if @out;
    # otherwise fall thru to the normal stuff below...
  }

  require File::Temp;
  return File::Temp::tempfile(UNLINK => 1); ######### LINE 1483 #########
}
#..........................................................................

So, why would the parameters of File::Temp::tempfile be "invalid"?
And what the heck is "UNLINK"?  That doesn't look like a variable.

I'm getting this problem both on my computer at work, and here at home.
Both computers are running MS Windows 2000, and both are using djgpp
and Perl version 5.8.8 .

I tried changing environment variable "tmpdir" to "C:\Temp", but I get
that same "Invalid argument on line 1483" error.

I'm not sure if this is a Perl issue or a djgpp issue (or both), so I'm
posting this in both comp.lang.perl.misc and comp.os.msdos.djgpp .

-- 
Cheers,
Robbie Hatley
perl -le 'print "\154o\156e\167o\154f\100w\145ll\56c\157m"'
perl -le 'print "\150ttp\72//\167ww.\167ell.\143om/~\154onewolf/"'


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019