Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: conf file in Perl syntax

by GrandFather (Cardinal)
on Jun 11, 2009 at 21:11 UTC ( #770766=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @IPMap = (
        [ "host_1", "192.168.1.1" ],
        [ "host_2", "192.168.1.2" ],
        [ "host_3", "192.168.1.3" ],
    );
    
  2. or download this
    my %IPMap = (
        host_1 => "192.168.1.1",
        host_2 => "192.168.1.2",
        host_3 => "192.168.1.3",
    );
    
  3. or download this
    use strict;
    use warnings;
    ...
    
    Dump $IPMapH;
    Dump $IPMapAoA;
    
  4. or download this
    $HASH1 = {
               host_1 => '192.168.1.1',
    ...
                  '192.168.1.3'
                ]
              ];
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2014-12-25 08:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (159 votes), past polls