Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Parsing CSV only returns the second line of the file

by saint_geser (Initiate)
on Sep 01, 2012 at 07:00 UTC ( #991125=note: print w/replies, xml ) Need Help??


in reply to Re: Parsing CSV only returns the second line of the file
in thread Parsing CSV only returns the second line of the file

Could you please elaborate on that. I don't know much about perl, you're right but it is really annoying to do all these files by hand.

  • Comment on Re^2: Parsing CSV only returns the second line of the file

Replies are listed 'Best First'.
Re^3: Parsing CSV only returns the second line of the file
by Anonymous Monk on Sep 01, 2012 at 07:05 UTC

    Could you please elaborate on that.

    Find places in your code, say, a loop inside a loop, where you use the modulus operator, say like "% 1"

    Then compare that line to my code, esp the output

    When do you think that inner loop will end?

Re^3: Parsing CSV only returns the second line of the file
by Anonymous Monk on Sep 01, 2012 at 07:14 UTC

    Here is a better one, what do you think the inner while loop does, what is its purpose?

Re^3: Parsing CSV only returns the second line of the file
by Anonymous Monk on Sep 01, 2012 at 07:21 UTC

    Here is another hint, how many times do you get this warning (after you add the code)?  if( warn "calling parse " and $csv->parse($_) ) {

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991125]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2016-12-09 06:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (148 votes). Check out past polls.