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

Re^2: Problem when - use strict and -w

by GertMT (Friar)
on Jul 15, 2009 at 03:22 UTC ( #780142=note: print w/replies, xml ) Need Help??

in reply to Re: Problem when - use strict and -w
in thread Problem when - use strict and -w

Like your proposed code of reading the data. The empty last line problem is now also not an issue anymore. Don't think I can have Text::CSV_XS handle the output as I need to work on the output such as: (psuedocode)
multiply row->[2] by 4 if row->[0] != 123
Though definitely something I'll consider using in the future.

Replies are listed 'Best First'.
Re^3: Problem when - use strict and -w
by ikegami (Pope) on Jul 15, 2009 at 05:08 UTC
    What part of that do you think you can't do with $csv->print (but can somehow do with STDOUT->print)
      ah well, I'm kind of puzzled in the setup $csv->print where to put the part of the code that's going to work on the columns. In my (new) setup I have:
      while ( my $row = $csv_in->getline($fh_in) ) { # doing stuff with the columns print "Olah:","\t", $number++, $row->[2]... }
      How should I structure this using $csv->print. Probably just a small hint/example will open my eyes (again).
        Nothing changes.
        while ( my $row = $csv_in->getline($fh_in) ) { # doing stuff with the columns #print(...); $csv->print( ... ); }

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2018-03-23 17:39 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (295 votes). Check out past polls.