in reply to any loop ideas?

There are many ways to be loopy (in Perl) and it just boils down to what you are trying to accomplish. As I tell my students, first identify the problem and tailor the solution to fit.

Here are a few examples:

# loop until I get a null input while(1){ print "Type in a nubmer: "; my $x=<>; exit 0 unless $x # rest of the code here }
#this also loops until a null happens. for(;1;){ # see above for rest of approach
# Iterate 10 times and quit for(0..9) { # rest of your code }

So there ya have it... a few examples of how it is done. You should read up on flow control in Perl in a handy dandy How To Program in Perl type of book grasshopper.


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg