in reply to Substitution Operator

perlman:perlop is a great place to start, it describes the s/// function in detail.. If you really want to learn the ins and outs I recommend bookmarking it and studying it.

update: changed to[id:] link for cookie's sake