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

Re: perl - loop

by derby (Abbot)
on Jul 17, 2009 at 12:39 UTC ( [id://781044]=note: print w/replies, xml ) Need Help??


in reply to perl - loop

As others have said, please format your code. Also, when I have situations like this (looping and processing), I always find it easier to phase my coding:

  • First write code to fetch one url
  • Add code to save fetched data
  • Add code to loop *mocked* ids
  • Add code to get real data from the filesystem
If you do that, you may find the road less bumpy and not littered with X-Y problems.

-derby

Replies are listed 'Best First'.
Re^2: perl - loop
by apl (Monsignor) on Jul 17, 2009 at 13:08 UTC
    Your suggestions have the added benefits that you get to unit-test basic functionality as well as structuring that lower-level functionality as a set of subs.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-25 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found