Hey Andy:
Use the Perl standard OS constant, $^O, when you want to know what OS
you're on. Here are some values that are returned: Windows => mswin32,
AIX => aix, Linux => linux. Your version of UNIX will return a
different value. By the way you'll want to use '\\' when creating
Windows directo
It's a windows cmd.exe thing. Only dbl quotes work for "-e" script
creation and there are a number of other issues. In general, one-liners
in cmd.exe aren't going to be very useful. You can get a different shell
(even bash) for winx but
a
Andy Bach
Systems Mangler
Internet: [EMAIL PROT
OS is found via the $^O ("carrot capital O") special var:
$ perl -e 'print $^O'
linux
I think winx stuff starts w/ "MS"
C:\>perl -e "print $^O"
MSWin32
but you don't really want to do that. File::Copy
$ perldoc File::Copy
use File::Copy;
copy("file1","file2") or die "Copy failed:
Readdir and file::copy?
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Gary Yang
Sent: Thursday, January 24, 2008 2:16 PM
To: perl-win32-users@listserv.ActiveState.com
Subject: Questions on porting Perl from Unix to Windows
Hi All,
I need