CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
How to know what platform is?

 



sophie
Novice

Aug 9, 2004, 4:25 AM

Post #1 of 3 (628 views)
How to know what platform is? Can't Post

I need write a perl program to run on both Linux and Windows, how to know what current platform is?

Thanks!


davorg
Thaumaturge / Moderator

Aug 9, 2004, 5:51 AM

Post #2 of 3 (627 views)
Re: [sophie] How to know what platform is? [In reply to] Can't Post

Look at the contents of the $^O variable

(this really shouldn't be in the advanced section)

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks


sophie
Novice

Aug 9, 2004, 8:09 AM

Post #3 of 3 (623 views)
Re: [davorg] How to know what platform is? [In reply to] Can't Post

Sorry for posting to wrong category. I am a beginner. I came here for learning and forgot to change category when I posted a new topic.Blush

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives