Strings In Depth11 / 18
Up next

Substitute with s///

use strict;
use warnings;
use feature 'say';

my $s = "hello world";
# =~ binds the substitution to the variable
$s =~ s/world/perl/;
say $s;
What you're solving

s/// edits in place