Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Wanted: humanly readable `script` output

by pc88mxer (Vicar)
on May 04, 2008 at 19:55 UTC ( #684469=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $text = "abcDE\x08\x08xyz\x08Z"; # \x08 is the backspace character
    
    ...
      substr($text, pos($text)-2, 2, '');
    }
    print $text, "\n"; # emits: abcxyZ
    
  2. or download this
    while ($text =~ m/(\x08+)/g) {
      substr($text, $pos-2*length($1), 2*length($1), '');
    }
    print $text, "\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://684469]
help
Chatterbox?
[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 :-(
shmem is grabbed by nostalgia for Bolivia
[erix]: aah, ok.

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