Thread Regex Speicher ($1...) leeren
(4 answers)
Opened by Gast at 2007-05-10 15:38
oder:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 for my $zone (@zones) { my $lookup = `nslookup $zone $ns1`; if($lookup =~ /^Address:\s+(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$/im) { print $1 } else { print 'No answer' } } |