LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Converting a Windows Perl script to a Linux Perl script. (https://www.linuxquestions.org/questions/programming-9/converting-a-windows-perl-script-to-a-linux-perl-script-206881/)

rubbercash 07-19-2004 06:45 AM

Converting a Windows Perl script to a Linux Perl script.
 
What issues do I need to consider when converting my Windows Perl scripts to Linux Perl scripts. I already know about line breaks and obviously the first line #!/usr/bin/perl. Are there any other things that I need to change before my scripts should work in Linux?

Also, is there a program that will automate this whole process of conversion?

Thank You.

jim mcnamara 07-19-2004 09:39 AM

Any path name -- \ to /
Any disk name -- eg,. c:
Device names in general -- COMx to /dev/whatever

I would check the ASPN open forums -

http://www.activeperl.com/Products/ASPN_Open/

rubbercash 07-19-2004 10:22 AM

Thank You very much.
I used dos2unix to sort the line break problems.
I may try writing a script to convert them in the future.


All times are GMT -5. The time now is 08:43 PM.