You probably have it like:
while () {
print <<END;
my text
END
}
when, as you are recognizing, needs to be
while () {
print <<END;
my text
END
}
While you can modify the here document starting point, such as
print << END;
where that space is a tab character, this would look worse.
I've run into the same problem, and for things like sql statements, I find it better to use q() and friends, such as:
$sth=$dbi->prepare( q/
SELECT * FROM my_table WHERE AVERAGE( cost ) < ?
/) or die DBI->errstr;
The indents in this code will rarely affect SQL, and probably only a few select other cases will it be a problem.
Dr. Michael K. Neylon - mneylon-pm@masemware.com
||
"You've left the lens cap of your mind on again, Pinky" - The Brain
|