📅  最后修改于: 2022-03-11 14:48:10.956000             🧑  作者: Mango
# For Perl (language) only
# syntax (NOTE: this overwrites your original string)
=~ s///g;
# example: replacing all the 'r' characters with 'l'
$YourVar =~ s/r/l/g;
# usable example
my $YourVar = "strawberry";
$YourVar =~ s/r/l/g;
print $YourVar;
print "\n";