Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Include a package based on OS (ssearch)

by Anonymous Monk
on Jan 20, 2014 at 09:27 UTC ( #1071285=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use if ($^O eq "MSWin32"), 'Win32::Process';
    use if ($^O eq "MSWin32"), 'Win32::SearchPath';
    use if ($^O ne "MSWin32"), 'POSIX';
    
  2. or download this
    use Perl::OSType qw' is_os_type ';
    use if is_os_type('Windows'), qw' Win32::SerialPort ';
    use if not is_os_type('Windows'), qw' Device::SerialPort ';
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2023-12-01 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?