Re: Problems displaying Perl structures

2016-02-17 Thread Andy Bach
A bit off topic, but a best practice: On Wed, Feb 17, 2016 at 5:54 AM, Rui Fernandes wrote: > > my $VAR1 = { > 'group1' => '10.100.27.52', > 'group2' => '10.100.27.53', > 'group3' => '10.100.27.54', > 'group4' => '10.100.27.55', > 'group5' => '10

Re: Problems displaying Perl structures

2016-02-17 Thread Vincent Lequertier
Didn't know about 2) and 5) thanks. Looping over the values makes sense as well. Regards, Le 17/02/2016 15:31, Shlomi Fish a écrit : > Hi Vincent, > > some comments on your code: > > On Wed, 17 Feb 2016 14:24:28 +0100 > Vincent Lequertier wrote: > >> Thank you for your answer, however I think

Re: Problems displaying Perl structures

2016-02-17 Thread Shlomi Fish
Hi Vincent, some comments on your code: On Wed, 17 Feb 2016 14:24:28 +0100 Vincent Lequertier wrote: > Thank you for your answer, however I think you have misunderstood my > problem. I needed to loop over the $groupX in @table while interpolating > the ip addresses from %vars and displaying the

Re: Problems displaying Perl structures

2016-02-17 Thread Vincent Lequertier
Thank you for your answer, however I think you have misunderstood my problem. I needed to loop over the $groupX in @table while interpolating the ip addresses from %vars and displaying the table name. But I finally got it to work :-) I was looking for this kind of lines : for my $table (@tables)

Re: Problems displaying Perl structures

2016-02-17 Thread Rui Fernandes
Hi, Try this (read comments please...) #!/usr/bin/perl print "Content-type: text/html\n\n"; my $VAR1 = { 'group1' => '10.100.27.52', 'group2' => '10.100.27.53', 'group3' => '10.100.27.54', 'group4' => '10.100.27.55', 'group5' => '10.100.27.56',

Problems displaying Perl structures

2016-02-17 Thread Vincent Lequertier
Hello! I have the following data(sanitized) : print Dumper \%vars $VAR1 = { 'group1' => '10.100.27.52', 'group2' => '10.100.27.53', 'group3' => '10.100.27.54', 'group4' => '10.100.27.55', 'group5' => '10.100.27.56', 'group6' => '10.100