This might be slightly off, but maybe not. I responded to a post by George_Sherston a while ago, something about Getting_Data_from_an__END__block or something. The interesting thing that came out of that was the apparent funkiness when you do something like
my $var = $_ while (<DATA>);
When I run this under strict with Perl 5.6.1 and I immediately print out $var I get... nothing. No errors, no values, nothing. Even though I would expect to get the last line from DATA. I noticed that when I ran your code above I had the same behavior, that is, it printed nothing. When I ran this with Devel::Peek I saw that the pIOK and IOK flags are not set on the variable, but that it has had something assigned to it at some point because when done with strings MAX has some size in there.

Any way, the reason for this rambling is that I've never received a really definitive answer on what's going on here, except the nebulous <q\i>"Huh, must be some bug" I got from the comp.lang.perl.moderated list. I looked briefly in the bug list and didn't see anything like this, but I'm a bit new to internals so I easily could've missed it.

I guess I'm just wondering if this is connected to the odd closure behavior or perhaps has something to do with why the decompiled code looks like it does (because that's sorta the way it behaves, though not really).

I hope this wasn't too incoherent and random.

Ira,

"So... What do all these little arrows mean?"
~unknown


In reply to Re: Regarding B::Deparse by IraTarball
in thread Regarding B::Deparse by demerphq

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.