jbw@bucsf.bu.edu (Joe Wells) (11/17/90)
Feature request: The Bourne shell (later versions) has this syntax: cat <<-EOF First line Second line EOF which is equivalent to this: cat <<EOF First line Second line EOF Thus allowing one to properly indent one's here-is quotes to match the indentatation level of the program they are in. This would be real nice for Perl ...... -- Joe Wells <jbw@bu.edu>
lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) (11/17/90)
In article <JBW.90Nov17005830@bucsf.bu.edu> jbw@bucsf.bu.edu (Joe Wells) writes:
: Feature request:
:
: The Bourne shell (later versions) has this syntax:
:
: cat <<-EOF
: First line
: Second line
: EOF
:
: This would be real nice for Perl ......
$* = 1;
($foo = <<"\tEOF") =~ s/^\t//g;
First line
Second line
EOF
is a fairly close approximation. Making it do -EOF would be easy to do
for normal program text, and rather harder in evals, the way it's currently
set up. Maybe someday...
Larry