Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: RFC: A Primer on Writing Portable Perl Programsby ides (Deacon) |
on Nov 01, 2006 at 14:54 UTC ( [id://581681]=note: print w/replies, xml ) | Need Help?? |
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>
In Section
Meditations
|
|