July 2007
Intermediate to advanced
128 pages
2h 39m
English
s/// (Substitution)
s/PATTERN/REPLACEMENT/egimosx
Match PATTERN in the input string, and replace the match text with REPLACEMENT, returning the number of successes. /imosx are optional mode modifiers. /g substitutes all occurrences of PATTERN. Each /e causes an evaluation of REPLACEMENT as Perl code.