CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...: Re: [FishMonger] Generate a C file from CSV file using perl: Edit Log



Zhris
Enthusiast

Jul 2, 2014, 9:36 AM


Views: 50746
Re: [FishMonger] Generate a C file from CSV file using perl

Good point. Note though that chomp @headers is an overkill since only the last element contains a newline, perhaps chomp $headers[-1] is better.

If the CSV is particularly large and the header isn't on line 1, then his original double while loop doesn't seem like a bad approach either. Or perhaps there is a better way to remove that condition?

Chris


(This post was edited by Zhris on Jul 2, 2014, 9:39 AM)


Edit Log:
Post edited by Zhris (Enthusiast) on Jul 2, 2014, 9:38 AM
Post edited by Zhris (Enthusiast) on Jul 2, 2014, 9:39 AM
Post edited by Zhris (Enthusiast) on Jul 2, 2014, 9:39 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives