LoginSignup
0
0

More than 5 years have passed since last update.

読み取り専用配列

Posted at
Internals::SvREADONLY (@hoge, 1);

のようにして読み取り専用にした配列に

eval {
  push @hoge, $fuga;
};

と push するとエラーになる。そこまでは良いのだけれど、 $fuga の参照数が上がってしまうらしくずっと解放されない。

0
0
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0