[TriLUG] was more uselessinfo/commentary, now more percise perlquestion.
RAWagoner at mactec.com
Thu Mar 21 15:45:56 EST 2002
> > > print <<HERE;
> > > All of this information will be printed to STDOUT.
> > > Variables like $i will be interpolated.
> > > Perl code will not be executed. die "danger Will Robinson!" will
> > > printed, not executed.
> > > HERE
> > Also, I believe, and someone correct me if I'm wrong, there
> > be any spaces between << and HERE.
> Generally true; however, if you really want to you can do:
> print <<' THERE';
> Note the single-quotes around the beginning ' THERE' and that the
> *are* significant: three spaces between the opening ' and THERE,
> spaces between the left margin and THERE at the end.
Additionally, the kind of quotes you use will make a difference.
Double quotes will do variable interpolation in the here-doc.
Single quotes will not.
Back quotes will execute commands.
This can be useful and/or confusing.
Robert (quoting and bottom-posting by hand due to mailer deficiencies)
More information about the TriLUG