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