Hi All-
I have the following code which is pretty straight forward, for getting data into a form the 'real' script can use.
This output looks as it should when I print out by itself. I'm having a problem running the second part
Seems like this part of the script is ignoring the newlines I have just inserted, which are crucial. Any ideas why this may be? What can I do to ensure the second half 'sees' the newlines I have put in? TIA,
Joe
Because a thing seems difficult for you, do not think it impossible for anyone to accomplish.
Marcus Aurelius
I have the following code which is pretty straight forward, for getting data into a form the 'real' script can use.
Code:
7 while ($ln=<DATA>){if ($ln!~ /^\s*$/){
8 $ln=~ s/(^[1-9])/\n$1/g;
9 push @goodat , $ln;}
}
Code:
33 foreach $ln (@goodat) { do sth;}
Joe
Because a thing seems difficult for you, do not think it impossible for anyone to accomplish.
Marcus Aurelius