I find a lot of Perl one-liners online. Sometimes I want to convert these one-liners into a script, because otherwise I\'ll forget the syntax of the one-liner.
For e
#!/usr/bin/env perl while(<>) { s/(\d+)/localtime($1)/e; print; }
The while loop and the print is what -p does automatically for you.