Well of course the values in $a get captured when the assignment is made. What do you think was going to happen?

for (my $i=1; $i <= $hoeveel; $i++) { $y = $y + 155; $z = $z +1; print <<EOT; <g transform="translate(-124.85653,$y)" id="layer$z"> <text xml:space="preserve" style="font-style:normal;font-variant:normal;font-weight:normal +;font-stretch:normal;font-size:126.0375061px;line-height:125%;font-fa +mily:Arial;-inkscape-font-specification:'Arial, Normal';text-align:st +art;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-ancho +r:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stro +ke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" x="-45.714272" y="235.21936" id="text3336"><tspan id="tspan3338" x="-45.714272" y="235.21936">a</tspan></text> </g> EOT };


In reply to Re^5: Enlarging scalars by huck
in thread Enlarging scalars by WisDomSeeKer34

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.