Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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]
[marto]: good morning all, TCIF
[Discipulus]: TCIF & chips marto! and sane dots too
[Corion]: Hi marto ;) All Hail Crunchy!

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-02-24 09:46 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (353 votes). Check out past polls.