in reply to set proto string

That's why String::Interpolate exists:
#!/usr/bin/perl use warnings; use strict; use String::Interpolate; my @a; my $proto = 'String::Interpolate'->new({'a' => \@a}); @a = (1, 2); print $proto->('@a 3 4'); # 1 2 3 4

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

Replies are listed 'Best First'.
Re^2: set proto string
by vincentaxhe (Scribe) on Aug 20, 2024 at 16:35 UTC
    yes! god send you who know everything!