Aug 26, 2010, 6:49 PM
Post #1 of 3
A way to skip down to the next line within a long string?
I inherited a PERL script to read data from my weather station and post it onto the 'net a few years ago. The script was originally small, but over time I have added sensors and added many more algorithms to the script. I'm a PERL novice so most of what I have been able to teach myself involves loops, logical equations, etc.
Long story short...I now have one really long string of code that searches through the data in my text file. It was about 140 characters (all of my other lines are 100 or less), but with my most recent sensor it is up around 300. Now the script isn't running and I'm wondering if there is a 255 character limit for a line?
I'd rather not overhaul the entire search method at this point as I have a lot of logical code to write. Is there a character or something that I can add onto the end of the line, within the string, to continue it onto the following line? I know long lines are frowned upon in scripting, but the script is only for me so I'm not too concerned about that.