Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

•Re: peek - output a one-line preview of stdin

by merlyn (Sage)
on Apr 27, 2003 at 20:40 UTC ( #253528=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $pad = ' ' x $wide;
    ...
    $_ = substr($_ . $pad, 0, $wide);
    print $_, "\r";
    
  2. or download this
    printf "%-${wide}.${wide}s\r", $_;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2016-02-09 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (317 votes), past polls