There are many different command-line options available in Perl; many let you write useful programs directly from the command line. See the perlrun manpage.