Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2015-07-08 05:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls