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

patch for perldata.pod coming soon



I'll be producing a patch soon for perldata.pod, regarding
here-docs.  I'll be writing it in more English terms than my BNF
definition I advertised not too long ago.

However, just because here-docs are explained in the section of the Camel
that correspond to perldata.pod, don't here-docs belong somewhere else,
too?  I'm not sure if the here-doc construct could be considered an
operator (although the Camel calls most everything an operator).

I'll include all the special cases and caveats.

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

The $bar is not interpolated in the here-doc initializer.  The double
quotes only dictate the interpolation of the here-doc.  I think this could
use documenting.  No sense in specifically leaving it out.

-- 

  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>

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