RE: Questions on porting Perl from Unix to Windows

2008-01-24 Thread Andy_Bach
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

Re: Questions on porting Perl from Unix to Windows

2008-01-24 Thread Andy_Bach
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:

RE: Questions on porting Perl from Unix to Windows

2008-01-24 Thread William . Hoopes
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

Questions on porting Perl from Unix to Windows

2008-01-24 Thread Gary Yang
Hi All, I need to port my Perl script from Unix to Windows. Can someone tell me how to figure out which platform I am on? i.e. I need to know which Perl command can help me determin the platform. Once I know the platform, I'll code my script as the example bellow. But, how to figure out I am o