in reply to Re^2: redefining string interpolation
in thread redefining string interpolation
Changing the SF constructor to:
sub new { my ($class, $str, @lists) = @_; my @list = map {'ARRAY' eq ref $_ ? @$_ : $_} @lists; return bless {str => $str, list => \@list}, $class; }
fixes the list concatenation issue. The ordering issue is fixed by changing the first few lines of catSF to:
sub catSF { my ($lhs, $rhs, $inv) = @_; ($lhs, $rhs) = ($rhs, $lhs) if $inv;
|
|---|