Help for this page
use strict; use warnings; ... $file->edit_lines(sub{s/bar/baz/}); say $file->slurp;
foo baz foo baz