Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Help me how to use require..

by tobyink (Canon)
on Mar 28, 2012 at 09:11 UTC ( [id://962116]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    { # braces open and close scopes
    
    ...
    # message. Without "use strict", it will fail
    # silently.
    print $variable;
    
  2. or download this
    {
      package Web::Server;
    ...
      # shortcut for @Web::Server::ISA
      our @ISA = ('Server');
    }
    
  3. or download this
    package MyConfig;
    our $inputdir     = "/cygsrive/d/acec/CDRe/data/input/$swname";
    ...
    our $archivedir   = "/cygsrive/d/acec/CDRe/data/archive/$swname";
    our $duplicatedir = "/cygsrive/d/acec/CDRe/data/duplicate/$swname";
    our $baddir       = "/cygsrive/d/acec/CDRe/data/bad/$swname";
    
  4. or download this
    #!/usr/bin/perl
    
    require "./def_variable.pl";
    print "INPUT : $MyConfig::inputdir\n";
    

Log In?
Username:
Password:

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

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

    No recent polls found