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

Re^2: How to build a better mousetrap (or a variable to hold a column-measuring scale)

by roho (Canon)
on Sep 13, 2019 at 12:52 UTC ( #11106132=note: print w/replies, xml ) Need Help??


in reply to Re: How to build a better mousetrap (or a variable to hold a column-measuring scale)
in thread How to build a better mousetrap (or a variable to hold a column-measuring scale)

Thank you shmem. I think this is the one I will go with. I tweaked your entry a little to get the first 5 characters right.
use 5.10.0; $_=join"+",map{my $n=$_*10;sprintf" %-5s",$n%100||$n}1..22; s/ /| + /; # make first blank a pipe sign s/ /-/g; # replace blanks with dashes $_.='|'; # add pipe sign to the end say; __END__

"It's not how hard you work, it's how much you get done."

  • Comment on Re^2: How to build a better mousetrap (or a variable to hold a column-measuring scale)
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2019-12-05 19:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (151 votes). Check out past polls.

    Notices?