As an example,
#!/usr/bin/perl use strict; use warnings; my $string = 'I like cats. I think cats are nice.'; print $string =~ s/cat/dog/g;
In reply to Re: Inline substitution regex
by kennethk
in thread Inline substitution regex
by bradcan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |