Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Short version of database push for multiple variables

by Eliya (Vicar)
on May 13, 2012 at 20:19 UTC ( #970327=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -MData::Dumper -e'@a = split /\t/, "foo\t\tbar"; print Dumper \
    +@a'
    $VAR1 = [
    ...
              '',
              'bar'
            ];
    
  2. or download this
    $ perl -MData::Dumper -e'@a = map $_//"NA", split /\t/, "foo\t\tbar"; 
    +print Dumper \@a'
    $VAR1 = [
    ...
              'bar'
            ];
    
  3. or download this
    $ perl -MData::Dumper -e'@a = map $_ ne "" ? $_ : "NA", split /\t/, "f
    +oo\t\tbar"; print Dumper \@a'
    $VAR1 = [
    ...
              'NA',
              'bar'
            ];
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://970327]
help
Chatterbox?
[1nickt]: stevieb it turns out that Dell still has the Precision line of "mobile workstations", just not displayed on their main website. I found the Precision 7710 with 4k display/full-size keybd as req'd.
[1nickt]: List $2,788 (!), on sale for $1766, also a $200 coupon on the site thru 3/30 ... final price $1,566. Includes 3-yr on-site service.

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2017-03-27 12:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.