Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Too many outputs

by George_Sherston (Vicar)
on Jun 12, 2002 at 19:04 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://173964]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-19 08:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found