Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: loading modules using 'use'

by Taulmarill (Deacon)
on Jul 01, 2010 at 12:04 UTC ( #847500=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use CGI qw/:standard/;
    print header;
    
  2. or download this
    BEGIN {
        require CGI;
        CGI->import( ':standard' );
    }
    print header;
    
  3. or download this
    require CGI;
    CGI->import( ':standard' );
    print header;
    
  4. or download this
    Unquoted string "header" may clash with future reserved word at test.p
    +l line 12.
    Name "main::header" used only once: possible typo at test.pl line 12.
    print() on unopened filehandle header at test.pl line 12.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://847500]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2018-01-20 15:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (227 votes). Check out past polls.

    Notices?