develooper Front page | perl.perl5.porters | Postings from August 2012

Re: [perl #114102] unterminateable heredocs caused by newline in delimiter

Thread Previous | Thread Next
Kent Fredric
August 2, 2012 01:16
Re: [perl #114102] unterminateable heredocs caused by newline in delimiter
Message ID:
On 2 August 2012 19:20, Father Chrysostomos via RT
<> wrote:
> It works in string eval.  See also #78348 and #114040.

Side note: I saw this and decided to goof around a bit with different
values of X in

$foo = <<"X";

Seems a literal \r also triggers this.

Sample script base64 encoded to preserve \r


This also has the amusing side effect of displaying only

" anywhere before EOF at /tmp/ line 8

On the terminal due to the \r being output unescaped.


perl -e  "print substr( \"edrgmaM  SPA NOcomil.ic\\@tfrken\", \$_ * 3,
3 ) for ( 9,8,0,7,1,6,5,4,3,2 );"

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About