-----BEGIN PGP SIGNED MESSAGE----- On Sat, 25 Sep 1999, Tim Thomson wrote:
> On Wed, 22 Sep 1999, Steve Lamb wrote: > > > while(<>){ > > if ($_ =~ /inet addr:(\n+)\.(\n+)\.(\n+)\.(\n+)/){ > > $ipaddr = "$1.$2.$3.$4"; > > } > > $return = `nslookup $1.$2.$3.$4`; > > print($return); > > } > > Thanks for all replies. It was actually cut I was thinking of initially. > I couldn't get this one to go, nothing was going into $1,$2, or $ipaddr. Simple typo. Use \d (digit) instead of \n (linebreak). - -- finger for PGP public key. -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia Charset: noconv iQCVAwUBN+weXr7M/9WKZLW5AQGPzQQApQZf6WLJCHn3ND6fD8TTBXbS0okQOTjn s7550FeH10ls8DC5ItPXQIZiS1ZyZY8XbSKWYyRTJ8blckaxjC3SmYSwqeuL4EXa iPnmQFwBW09wP8KovdhYgUaRSQlUEogdwZ7vTIBfyykkovJ4I0/R2M/c0EYiGuaM Xhf+sojdR2g= =k8BC -----END PGP SIGNATURE-----