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

Re^5: Looking for ideas: Converting a binary 'flags' field into something human readable

by Monk::Thomas (Friar)
on Jul 08, 2015 at 10:47 UTC ( #1133695=note: print w/replies, xml ) Need Help??


in reply to Re^4: Looking for ideas: Converting a binary 'flags' field into something human readable
in thread Looking for ideas: Converting a binary 'flags' field into something human readable

% perl flag_compress.pl sideways |ompressed up |lse | deleted down | bar | | that
Hmm. Looks quite strange. But I like the idea to try to keep all annotations on the same line and if that is not possible create a new line:
    flags1 => 0b0100110000100000101000000000100000000000000101000000000000001111;
#                | compressed   | other     | and another  |foo             | up
#                   | deleted                                | bar           | down 
#                    | this       | something else                            | charm
#                         | that                                               | strange
Thanks!

Update

Downloaded the code via wget using the download link. Output looks a lot better after converting from DOS to UNIX file format.

  • Comment on Re^5: Looking for ideas: Converting a binary 'flags' field into something human readable
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (1)
As of 2022-05-21 21:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (78 votes). Check out past polls.

    Notices?