So why can't they go just about anywhere before another delimiter, since everyting is a (sub) expression?
IANALG1 so take this with a pinch of salt :)

Semi-colons can be put after ever statement, but not every expression. If you were to put semi-colons after every expression the you couldn't build up larger expressions e.g

# exp # exp and exp # ( (exp || exp) and (exp || exp)) foo() || $bar->() and $baz || @quux;
So when B::Deparse sees your code it (roughly) breaks it down into the following
print *{ # beginning of glob dereference ${ # beginning of scalar derference $x # scalar statement to be dereferenced } # end of scalar dereference {$y} # glob statement to be dereferenced (+ ${$x} ) } # end of glob statement to be dereferenced {SCALAR} # glob slot and end of print statement
Hopefully that clears things up. I've updated my original reply as well to be a little clearer on the issue.
HTH

_________
broquaint

1 I Am Not A Language Guru


In reply to Re: Re: Re: (another?) Deparse bug by broquaint
in thread (another?) Deparse bug by John M. Dlugosz

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.