Le 18/02/2016 08:24, $Bill a écrit :
> On 2/17/2016 03:15, Vincent Lequertier wrote:
>>
>
> I'd get rid of the '$'s in front of '$group1' etc to avoid the '$ip =~
> s/^\$//;' below.
>
>> How can I have the following output?
>>
>> ,"10.100.29.0/24"
>> ,10.100.27.52
>> ,10.100.27.53
>> ,10.100.27.5
On 2/17/2016 03:15, Vincent Lequertier wrote:
I'd get rid of the '$'s in front of '$group1' etc to avoid the '$ip =~
s/^\$//;' below.
How can I have the following output?
,"10.100.29.0/24"
,10.100.27.52
,10.100.27.53
,10.100.27.54
,10.100.27.55
,10.100.27.56
,10.100.27.57
My version:
my
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
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
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
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)
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',