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: [gopsi1234] Generate a C file from CSV file using perl: Edit Log



Zhris
Enthusiast

Jun 22, 2014, 12:09 PM


Views: 59902
Re: [gopsi1234] Generate a C file from CSV file using perl

Hi,

Running that piece of code I don't receive the error that you do using http://www.compileonline.com/execute_perl_online.php. In fact the output is blank because upon copying and pasting the code it appears to add extra whitespace on the end of blank rows of data, not sure why, but I temporarily resolved using $/ = "\n \n"; .

If you want an alternative that processes the same structure of data, use the 4th example above but adjust the modulus condition to next if $. == 1 or $. % 3 != 1;.

Otherwise could you please post a) the exact code you are executing b) the data you are running against c) the output/error, so that I can replicate your issue.

Chris


(This post was edited by Zhris on Jun 22, 2014, 2:03 PM)


Edit Log:
Post edited by Zhris (Enthusiast) on Jun 22, 2014, 2:02 PM
Post edited by Zhris (Enthusiast) on Jun 22, 2014, 2:02 PM
Post edited by Zhris (Enthusiast) on Jun 22, 2014, 2:03 PM


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

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