>  c:\>perl  -wE "say $^V,$^O;$_='123456789';s§3(456)7§$1§;say"
>  v5.12.1MSWin32
>  1245689

My equivalent that works is:

perl -wE "use utf8;my \$_='123456789';s§3(456)7§§\$1§;say;"
1245689

If I stop treating this section-sign delimiter as a bracketing delimiter, it 
fails:

perl -wE "use utf8;my \$_='123456789';s§3(456)7§\$1§;say;"
Substitution replacement not terminated at -e line 1.
ˉ


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to