Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Putting a filename as a parameter to a perl script then reading from it in the code?

by Anonymous Monk
on Dec 08, 2012 at 03:42 UTC ( #1007845=note: print w/ replies, xml ) Need Help??


in reply to Re: Putting a filename as a parameter to a perl script then reading from it in the code?
in thread Putting a filename as a parameter to a perl script then reading from it in the code?

If you're going to use that you should remember to use ARGV::readonly;

But it this is indeed CSV, don't bother reinventing the wheel, start with Text::CSV, expecially these http://search.cpan.org/dist/Text-CSV_XS/MANIFEST programs
examples/csv2xls Script to onvert CSV files to M$Excel
examples/csv-check Script to check a CSV file/stream
examples/csvdiff Script to shoff diff between sorted CSV files
examples/parser-xs.pl Parse CSV stream, be forgiving on bad lines


Comment on Re^2: Putting a filename as a parameter to a perl script then reading from it in the code?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (16)
As of 2015-07-30 16:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls