Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Uncommon* but Useful Perl Command Line Options

by Abigail-II (Bishop)
on Jan 29, 2004 at 00:20 UTC ( #324839=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
        $ perl -wl -e 'print "This is line 1";' \
                   -e 'print "This is line 2";' \
                   -e 'print "This is line 3";' \
                   -e 'print "This is line 4";' \
                   -e 'print "This is line 5";'
  2. or download this
        while(<>) { print ; }
  3. or download this
        $ perl -MO=Deparse -pe '1'
        LINE: while (defined($_ = <ARGV>)) {
            print $_;
        -e syntax OK
  4. or download this
  5. or download this
        perl -01512 -e
  6. or download this
        $ perl -01512 -e 1
        Unrecognized switch: -2  (-h will show valid options).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://324839]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2015-07-29 23:42 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (269 votes), past polls