Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

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

by roho (Bishop)
on Sep 13, 2019 at 12:52 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11106132]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-24 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found