Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^5: Adding a TAB after a certain ammount of characters

by biancoari (Initiate)
on Apr 17, 2013 at 12:09 UTC ( #1029131=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     #!/usr/local/bin/perl 
    perl -Mstrict -Mwarnings -E 
    my $text =
    ...
    push @cums, $_ + $cums[ -1 ] for @offs;
    substr $text, $_, 0, q{-} for reverse @cums[ 1 .. $#cums ];
    say $text; 
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1029131]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2018-07-19 06:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (403 votes). Check out past polls.

    Notices?