Re: problem with foreach and while with array

2002-08-28 Thread Priss
Thank you Connie for helping me on this, it was fixed by below comment you made :))) >> SOA: while () >> { >> chomp; > >You don't need to chomp it, or you don't need $/ at >last of the next line. Priss __ Do You Yahoo!? Everything you'll

Re: problem with foreach and while with array

2002-08-28 Thread Connie Chan
> > Wonder if someone could help me, I am trying to write > a script to pulls out all the machine names from a > revese DNS file, some how, my script will only print > out the machine names with 1.x.x.in-addr.arpa > > $nslookup = '/usr/local/bin/nslookup'; > $dig = '/usr/local/bin/dig'; >

problem with foreach and while with array

2002-08-28 Thread Priss
Hiya, Wonder if someone could help me, I am trying to write a script to pulls out all the machine names from a revese DNS file, some how, my script will only print out the machine names with 1.x.x.in-addr.arpa $nslookup = '/usr/local/bin/nslookup'; $dig = '/usr/local/bin/dig'; @ZONES = qw