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
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2014-11-28 15:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (197 votes), past polls