ls testfile | perl -lpi -e 's/e/*/' #### ls testfile | xargs perl -lpi -e 's/e/*/' #### find ... -print | perl -pi.bak -e 'BEGIN { chomp(@ARGV = ) } s/foo/bar/g' #### LINE: while (<>) { ... } #### LINE: while (@ARGV) { ... }