[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: patch for perldata.pod coming soon



On Jan 30, Ilya Zakharevich said:

>Your here-doc initializer is not "three $bar".  It is empty.
>
>Hope this hurts,  ;-)

I hate to take a snippy attitude, but:

  $a = "four";
  print << "three $a";
  one two
  three four

  one two
  three $a 

  print $a;

  __END__

  one two
  three four

  one two
  four

Perhaps you were thinking I did:

  print << FOO;

by mistake.  No, there can be spaces or tabs after the << if the
identifier is placed in quotes. :)

Here-docs need better documentation.

http://www.pobox.com/~japhy/documentation/here-docs.html

-- 

  MIDN 4/C PINYAN, USNR, NROTCURPI     http://www.pobox.com/~japhy/
  jeff pinyan: japhy@pobox.com     perl stuff: japhy+perl@pobox.com
  CPAN ID: PINYAN  http://www.perl.com/CPAN/authors/id/P/PI/PINYAN/
  PerlMonth - An Online Perl Magazine     http://www.perlmonth.com/


Follow-Ups from:
Ilya Zakharevich <ilya@math.ohio-state.edu>
References to:
Ilya Zakharevich <ilya@math.ohio-state.edu>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]