Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by ybiC (Prior)
on Nov 05, 2002 at 00:50 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-03-29 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found