LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-19-2004, 06:45 AM   #1
rubbercash
LQ Newbie
 
Registered: Jul 2004
Location: UK
Distribution: redhat
Posts: 15

Rep: Reputation: 0
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.
 
Old 07-19-2004, 09:39 AM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 36
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/
 
Old 07-19-2004, 10:22 AM   #3
rubbercash
LQ Newbie
 
Registered: Jul 2004
Location: UK
Distribution: redhat
Posts: 15

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
runing perl unix script in windows 2000 anirudh Programming 3 04-15-2005 10:07 AM
Getting PID from a system command in Linux perl script sumbabs Linux - General 1 03-03-2005 10:38 AM
Perl script for statisting/logging windows clients gottin Linux - Networking 2 08-01-2004 05:27 AM
how to find the pid of a perl script from shell script toovato Linux - General 1 12-19-2003 06:25 PM
Including methods from a perl script into another perl script gene_gEnie Programming 3 01-31-2002 05:03 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration