Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Text::Autoformat

by GrandFather (Saint)
on Apr 28, 2006 at 20:06 UTC ( #546374=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        push @array, ('@', '@') if scalar(@array) < 10;
        splice @array, -2, 2 if scalar(@array) >= 10;
    
  2. or download this
    use strict;
    use warnings;
    ...
        $str .= "@@" if length ($str) < 10;
        substr $str, -2, 2, '' if length ($str) > 10;
    }
    
  3. or download this
        my $newStr = autoformat ($str, { justify => 'center' });
        print "$newStr\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (1)
As of 2023-06-06 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (26 votes). Check out past polls.

    Notices?