Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: using 'use' conditionally (require instead of use)

by ybiC (Prior)
on Nov 05, 2002 at 00:50 UTC ( #210358=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $have_SWE;
    BEGIN {
    ...
    }
    if ($have_SWE == 1) { ... }
    
  2. or download this
    my $have_Tk;
    BEGIN {
    ...
      $have_Tk = 1 unless ($@);
    }
    if ($have_Tk == 1) { ... }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2022-05-17 15:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (66 votes). Check out past polls.

    Notices?