On Mon, Jun 30, 2003 at 09:47:25AM +0400, ������� ������ wrote:

>         return "$lp$str$ls";  # <-- memory leak is here, return $lp.$str.ls; better

String interpolation is already compiled into concatenation operations:

% perl -MO=Deparse,-q -e '$x = "$lp$str$ls"; $x = $lp.$str.$ls;'
$x = $lp . $str . $ls;
$x = $lp . $str . $ls;
-e syntax OK

(There is a slight difference in the resulting op-codes.)

Have you tested your change to see if it fixes the memory leak?


Ronald
  • ... Монашёв Михаил
    • ... Монашёв Михаил
      • ... gregg
        • ... Монашёв Михаил
          • ... Ronald J Kimball
            • ... Монашёв Михаил
              • ... Rudy Lippan
                • ... Монашёв Михаил
                • ... Paul Boutros
                • ... Монашёв Михаил
                • ... Rudy Lippan
                • ... Монашёв Михаил
                • ... Rudy Lippan
                • ... David N Murray
                • ... Rudy Lippan

Reply via email to