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

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
        split;
    
  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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://324839]
help
Chatterbox?
[Corion]: erix: Sure, but SQLite doesn't even need that :)
[hippo]: Corion: Yes, you can. It's all in the pg_hba.conf
[erix]: yeah, but there is a lot SQLite cannot do :)
[hippo]: Database is the 2nd column.
shmem .oO( docker. docker. docker? docker. docker! docker )
[shmem]: at least, some Ook.
[erix]: another simple Pg thing is to running a database off a tsv (alas, readonly)
[erix]: I'm waiting for that zipfile-reading to show up in DBD::SQLite :)
[Corion]: hippo, erix: That sounds promising :)
[Corion]: erix: I misinterpreted that. It only allows to read a zipfile like a table, not reading a database from a zipfile :-(

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2018-02-23 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (302 votes). Check out past polls.

    Notices?