Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How do you use the if pragma?

by Anonymous Monk
on Apr 08, 2013 at 20:55 UTC ( #1027597=note: print w/ replies, xml ) Need Help??


in reply to How do you use the if pragma?

Re^5: Problems with forking, Re^3: Loading a module at runtime, Re: mention a non-installed module in script, Re: constants wont optimize, Re^3: How to have OS specific code sections in Perl, Re: Variable as module name? (modern perl), Re^2: Redefining Imported Subs: of scope and no, use Module::Implementation

use constant DEBUG => !!( 0 || $ENV{PERL_DEBUG_MYAPPNAME} ); use if DEBUG , qw' Carp::Always '; 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 '; use if eval { require mod; 1 }, qw' constant haveMod 1 '; use if not exist $INC{'mod.pm'}, qw' constant haveMod 0 '; use if not exist $INC{'MIDI/ALSA.pm'}, 'something::else', ...; perl -we " use if eval{require CGI}, our $cgi = 'CGI'; print $cgi->new +->header " perl -le " use if $ENV{maplat_debug}, lib => 666; print for @INC"


Comment on Re: How do you use the if pragma?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2015-07-08 03:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls