http://www.perlmonks.org?node_id=11105315


in reply to Re: Memory leak in unicode substitution
in thread Memory leak in unicode substitution

Good catch, can confirm. Surprisingly, simply adding use utf8; doesn't fix it though. Aren't all string literals to be Unicode when utf8 is in effect?


holli

You can lead your users to water, but alas, you cannot drown them.

Replies are listed 'Best First'.
Re^3: Memory leak in unicode substitution
by choroba (Cardinal) on Aug 30, 2019 at 17:12 UTC
    No. use utf8; just means UTF-8 is used in the source code (both in string literals or identifiers). But even use feature qw( unicode_strings ); doesn't help here.

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]