Help for this page

Select Code to Download


  1. or download this
    use strict; 
    use warnings; 
    ...
    $text =~ s/\x1b[^A-Z]+[A-Z]//g; 
     
    print "Remaining text is '$text'\n";
    
  2. or download this
    $ perl foobar.pl
    Remaining text is '<p>Simple code to connect and login to HP Procurve 
    +use(ing) Expect below, generates following output to STDOUT and PATH/
    +FILE</p><p>Connecting
    ...
    </p>
    '