The –l option
The Perl –l option applies chomp to each line of input and places \n at the end of each line of output. The examples in this section use the Perl –l and –e (page 522) options. Because the program must be specified as a single argument, the examples enclose the Perl programs within single quotation marks. The shell interprets the quotation marks and does not pass them to Perl.
Tip: Using other options with –e
When you use another option with –e, the program must immediately follow the –e on the command line. Like many other utilities, Perl allows you to combine options following a single hyphen; if –e is one of the combined options, it must appear last in the list of options. Thus you can use perl –l –e ...