in reply to Re: remove first and last character of string
in thread remove first and last character of string

I think your input should rather be
my $str = '"654321_1111"';

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^3: remove first and last character of string
by GrandFather (Saint) on Oct 14, 2020 at 10:05 UTC

    Indeed, or something like that.

    Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond