http://www.perlmonks.org?node_id=286145


in reply to multiple (different) substitutions on same $foo

According to Apocalypse 4, which reads:

Basically, the only difference between a given and a for is that a given takes a scalar expression, while a for takes a pre-flattened list and iterates over it.
given $foo { s/frog/toad/g; s/man/boy/; s/woman/girl; }

Hurry up, Larry!