For a really really really basic introduction to "substitute pie" (and some other basic perlrun functionality) see A gentle introduction/tutorial to the perl command line flags.. By "substitute pie", I mean what Tilly was talking about above. (This writeup skips the "i" (in place) part of that recipe, but hopefully still helps.)