in reply to Replacing Whitespace with Underscore
See perlrun for the meaning of -switches and Quote Like Operators for the transliteration operator.
$ perl -wpe 'tr/ /_ /' < input.txt > output.txt
PerlMonks, of course - how could you ask?
Games & puzzles
Arts & music
Whichever pays my bills
Results (225 votes). Check out past polls.