SunQuest
           Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 26th, 2001, 06:17 AM
Flink Flink is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Location: Manchester, UK
Posts: 47 Flink User rank is Private First Class (20 - 50 Reputation Level)Flink User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 h 48 m 9 sec
Reputation Power: 8
Do Perl scripts which are fully working in UNIX, work in Linux and Apache? I know NT can cause problems.

Thanks for any response.
Flink

Reply With Quote
  #2  
Old March 1st, 2001, 12:27 AM
carlos carlos is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 11 carlos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Perl scripts are VERY portable between most OS'es. Just as long as you do not use OS specific system calls. For instance writing a Perl script that calls the UNIX/Linux 'ps' command can easliy be transfered from UNIX<->Linux, but you probably cannot run in on a windoze system (unless you have installed UNIX utilities on your windoze box).
Also, if you are porting from UNIX to NT (or vice verse), you have to contend with file path conventions. i.e. windows uses back slashes '\', while UNIX uses forward slashes '/'. However, these differences can be eliminated through careful planning or the use of configuration files. For instance, when i write Perl scripts on my windoze machines, i create config files that store filepaths and other variables so that when i upload my scripts on my web host running Linux, all i have to change is the filepaths in my config file, without modifying my code.

Hope this helps.

-Carlos

Reply With Quote
  #3  
Old March 1st, 2001, 12:50 PM
dsb dsb is offline
PerlGuy
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2001
Posts: 714 dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 15 h 44 m 20 sec
Reputation Power: 36
Send a message via AIM to dsb
Wink

Perl is very platform independent. Even in instances that system calls must be made(eg.- writing some kind of system module), there is a variable in Perl that is dedicated to storing the OS type. Of course, that means that you have to program the functionality for all platforms but if you do it right, it shouldn't really be that much extra code.

The variable is '$^O' or (dollar-caret-Oh)

Hope that helps
__________________
- dsb -
Perl Guy

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > OS Compatibility


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway