Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Conditional array initialisation?

by LanX (Bishop)
on Jul 12, 2013 at 19:38 UTC ( #1044063=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<125> @a=()
    
    ...
    
      DB<127>  @a  = (@a || ( 4..6 ));
     => 3
    
  2. or download this
      DB<138> @a=()
    
    ...
    
      DB<144> \@a
     => [1, 2, 3, 4, 5, 6]
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1044063]
help
Chatterbox?
[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 :-(
shmem is grabbed by nostalgia for Bolivia
[erix]: aah, ok.
[erix]: oh well, in each life some rain must fall
[erix]: if you're interested in tsv file reading in pg, look at file_fdw

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (12)
As of 2018-02-23 15:21 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?