diff options
Diffstat (limited to 'README')
-rw-r--r-- | README | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -7,16 +7,16 @@ searching, modifying and saving it to a file. EXAMPLE - use Config::HAProxy; + use Config::HAProxy; - # Parse HAProxy configuration file - $cfg = Config::HAProxy->new->parse; + # Parse HAProxy configuration file + $cfg = Config::HAProxy->new->parse; - # Print IP addresses and ports of the configured backends - foreach my $srv (map { $_->select(name => 'server') } + # Print IP addresses and ports of the configured backends + foreach my $srv (map { $_->select(name => 'server') } $cfg->tree->select(name => 'backend')) { - print $srv->arg(1),"\n"; - } + print $srv->arg(1),"\n"; + } INSTALLATION |