Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: conf file in Perl syntax

by bichonfrise74 (Vicar)
on Jun 11, 2009 at 19:15 UTC ( [id://770743]=note: print w/replies, xml ) Need Help??


in reply to conf file in Perl syntax

Here's a possible solution...
#!/usr/bin/perl use strict; my $config = { host_1 => '192.168.1.1', host_2 => '192.168.1.2', host_3 => '192.168.1.3', host_4 => '192.168.1.4' }; for my $i ( keys %{$config} ) { print "key: $i --- value: $config->{$i}\n"; }

Log In?
Username:
Password:

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

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

    No recent polls found