Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Importing constants into another module

by paulski (Beadle)
on Feb 03, 2005 at 00:57 UTC ( [id://427488]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # full path to hosts file
    use constant HOSTS_FILE => '/home/csssec/audit/css_hosts.txt';
    
    ...
    ...
    
    1;
    
  2. or download this
    #!/usr/bin/perl -w
    
    use strict;
    ...
    
    }
    close(FILE);
    
  3. or download this
    package DNSCheck;
    
    use Audit::Config;
    ...
    }
    
    1;
    
  4. or download this
    Bareword "HOST_BIN" not allowed while "strict subs" in use at Check/DN
    +SCheck.pm line 30.
    Compilation failed in require at ./audit.pl line 6.
    BEGIN failed--compilation aborted at ./audit.pl line 6.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-26 04:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found