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

Re^2: Avoid warnings while formatting with repeated format lines

by hexcoder (Curate)
on Aug 24, 2022 at 17:48 UTC ( [id://11146378]=note: print w/replies, xml ) Need Help??


in reply to Re: Avoid warnings while formatting with repeated format lines
in thread Avoid warnings while formatting with repeated format lines

Thanks kcott!

That is appreciated a lot! I will definitively bookmark this solution for later reference.

What would also be really cool, is using format also dynamically in the horizontal direction. That would probably mean to use eval and hook into the lowlevel formatting, I guess.

hexcoder

Replies are listed 'Best First'.
Re^3: Avoid warnings while formatting with repeated format lines
by hippo (Bishop) on Aug 24, 2022 at 17:54 UTC
    What would also be really cool, is using format also dynamically in the horizontal direction.

    I'll just mention that Text::Table exists so that you (and I) don't have to wrestle with such things. OTOH, if you were intent on a challenge ...


    🦛

      There is also Perl6::Form, Damian Conway's implementation of the interface that was designed for Perl6 (now Raku) to replace Perl5's concept of formats.

Re^3: Avoid warnings while formatting with repeated format lines
by kcott (Archbishop) on Aug 25, 2022 at 00:29 UTC
    "What would also be really cool, is using format also dynamically in the horizontal direction. That would probably mean to use eval and hook into the lowlevel formatting, I guess."

    You would need eval but shouldn't need to mess around with *STEP{FORMAT} or anything like that. There's an example in "perlform: NOTES"; search for "The truly desperate can ...". :-)

    I used to use format quite regularly 20-25 years ago (probably a couple of times a week for generating all manner of reports). Although fairly proficient back then, I often encountered pulling-my-hair-out-in-frustration situations. These days, I'd generally look to other solutions; I don't think I've used it this millenium.

    — Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-29 08:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found