unexpected EXTENDED_OS_ERROR on Windows

From: Griff (griffph_at_aol.com)
Date: 08/31/04


Date: 31 Aug 2004 03:45:42 -0700

hi there

I'm running ActiveState Perl v5.6.1 on Windows XP.

The code

$cmdstr = "copy old.txt new.txt";
system($cmdstr);
print "$^E";

produces the results
------------------------------------------
1 file(s) copied.
The system cannot find the file specified.
------------------------------------------
When I check the files old.txt and new.txt, the file copy has actually worked.
Why do I get this error message in EXTENDED_OS_ERROR ?
(If I print the "$^E" variable before running the program, I can see it is empty.)

Your assistance would be welcomed.

Thanks, Griff



Relevant Pages

  • RE: large files
    ... > I am running ActiveState Perl 5.8 on Windows XP with ... > SQL DB and just writes the data to a spreadsheet, about a 20m file, ... > and prompt them to hit any key to close the window. ...
    (perl.beginners)
  • large files
    ... I am running ActiveState Perl 5.8 on Windows XP with Spreadsheet::ParseExcel ... spreadsheet, about a 20m file, that program works great. ... Once you hit any key, ...
    (perl.beginners)
  • Re: memory efficiency - for loop with reverse list
    ... Used 9.4% of my memory, ... I am running activestate perl v5.8.7 (Windows XP), ...
    (comp.lang.perl.misc)