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

Re: Too many outputs

by George_Sherston (Vicar)
on Jun 12, 2002 at 19:04 UTC ( #173964=note: print w/replies, xml ) Need Help??


in reply to Too many outputs

The problem is you have a foreach loop *inside* a while loop, so for each line of your log file, you're going through your @attributes array and printing the whole lot out $#attributes times.

I think it would work if you just took out the line starting foreach and the corresponding } at the end, though I haven't tried this out.

George Sherston

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2019-07-20 02:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?