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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://847500]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-03-28 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found