Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: A looping and format question...

by Fastolfe (Vicar)
on Dec 13, 2000 at 20:50 UTC ( #46441=note: print w/replies, xml ) Need Help??

in reply to A looping and format question...

All of your variables are global variables, so when they're set to $_, they will remain set. The way you have your loop designed, once you get all the way through the first set of data, those variables will retain their values, causing each iteration of the loop thereafter to call write (in other words, for every line of data afterwards, giving you an enormous number of extraneous reports).

If you want to continue with a design like this, you should un-set your variables after you write the report. This would allow them to fill up and your defined test to check the next occurrences (assuming you fix that test up as described by other posters--it's wrong how it is now).

I also strongly recommend you take a look at Net::WHOIS, which should make your life considerably easier.

Replies are listed 'Best First'.
Re: Re: A looping and format question...
by MCauth (Novice) on Dec 14, 2000 at 21:37 UTC
    Thanks for the help guys...I've learned a ton with this project. The most important thing: Don't reinvent the wheel. I went witht the module and my format is very pretty and I'll be able to hand the info. over in time. I had one of the strong perl guys here at work patch the module for me so it gives the expiration date for the domain. He sent it off to the person who maintains that module, so that patch may be included in a later version.
    I felt like I was so close and wanted to finish it without the module's help. Didn't get me too far...Thanks again, and I've learned a few things from your feedback.
    BTW -- can anyone recommend a general programming logic book? I sure could use one.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://46441]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2022-08-08 01:27 GMT
Find Nodes?
    Voting Booth?

    No recent polls found