Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: RFC: A Primer on Writing Portable Perl Programs

by ides (Deacon)
on Nov 01, 2006 at 14:54 UTC ( [id://581681]=note: print w/replies, xml ) Need Help??


in reply to Re: RFC: A Primer on Writing Portable Perl Programs
in thread RFC: A Primer on Writing Portable Perl Programs

True, but I think the point he was trying to make is avoid using $^O whenever possible. First off avoid using it in your own code when a suitable CPAN module exists. I'd say the second step would be to abstract out your use of it into your own independant module to localize the OS specific-ness to as few places as possible.

Nothing is worse than having huge if/else trees of OS specific code littered throughout a program.

Frank Wiles <frank@revsys.com>
www.revsys.com

  • Comment on Re^2: RFC: A Primer on Writing Portable Perl Programs

Replies are listed 'Best First'.
Re^3: RFC: A Primer on Writing Portable Perl Programs
by yumpy (Sexton) on Nov 01, 2006 at 17:52 UTC
    I agree completely! That is the point I was trying to make.
    *=========================================================================*
    | Dr. Tim Maher, CEO, Consultix
    | Email: tim@consultix-inc.com
    *=========================================================================* 
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://581681]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-25 14:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found