Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: How can I print all lines instead of 1 random?

by CheeseLord (Deacon)
on Aug 20, 2001 at 07:37 UTC ( [id://106120]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: How can I print all lines instead of 1 random?
in thread How can I print all lines instead of 1 random?

Okay, in that case, my code should still work about the same way... just change the splice line to this:

@lines = <LINE>;

And inside the for loop, you'll want to just print out the sponsors' links (or images, or whichever field(s) you want to print out), as opposed to printing out the complete set of information for each sponsor. If that fails for some other reason (say, "Cheesy wrote bad code") then tell me what errors you're getting and I'll give it another shot. Hope that helps!

Note: If this file is big, you'll likely want to process each one individually with a while loop, instead of a for.

His Royal Cheeziness

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-03-29 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found