Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: how to in-place update a dataset?

by kcott (Archbishop)
on Mar 14, 2013 at 03:47 UTC ( [id://1023357]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ cat > fred.dat
    abcd    123     456     defg
    cdefg   23              as
            345     235     
    xsd             swe
    
  2. or download this
    $ perl -Mstrict -Mwarnings -e '
        use Tie::File;
    ...
        @fred_data = map { s/(^|\t)(?=\t|$)/${1}Missing/g; $_ } @fred_data
    +;
        untie @fred_data;
    '
    
  3. or download this
    $ cat fred.dat
    abcd    123     456     defg
    cdefg   23      Missing as
    Missing 345     235     Missing
    xsd     Missing swe     Missing
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (7)
As of 2024-04-23 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found