develooper Front page | perl.perl5.porters | Postings from May 2013

[perl #70357] duff DATA segment in -e

Thread Next
From:
James E Keenan via RT
Date:
May 27, 2013 01:07
Subject:
[perl #70357] duff DATA segment in -e
Message ID:
rt-3.6.HEAD-2650-1369616854-1383.70357-15-0@perl.org
On Mon Nov 09 08:33:58 2009, zefram@fysh.org wrote:
> 
> This is a bug report for perl from zefram@fysh.org,
> generated with the help of perlbug 1.36 running under perl 5.10.0.
> 
> 
> -----------------------------------------------------------------
> [Please enter your report here]
> 
> $ perl -we $'print <DATA>;\n__DATA__\nfoo\n'
> $
> 

I'm afraid I don't understand the '$' in the above command, i.e., I
don't know what it is supposed to be doing.  And I can't find anything
like that in 'perlrun'.

Can you clarify?

> In -e, the __DATA__ token marks the end of the Perl code, as usual,
> but the following characters are not available in the DATA filehandle.
> However, the DATA filehandle does exist, unlike what happens if
>    __DATA__
> (and following data) don't appear at all.  The abstraction is leaking.
> 

Thank you very much.
Jim Keenan

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org:443/rt3/Ticket/Display.html?id=70357

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About