Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^5: Displaying bit-vectors with Most Significant Bits to the left?

by shmem (Chancellor)
on Jan 05, 2020 at 17:28 UTC ( #11110992=note: print w/replies, xml ) Need Help??


in reply to Re^4: Displaying bit-vectors with Most Significant Bits to the left?
in thread Displaying bit-vectors with Most Significant Bits to the left?

Well, you faked a copy from an actual test.

Think about it.

What should I think?it mimicked the REPL you are using. I did even fake the sequence number! D'oh!
Mine is different, I use perlsh from Term::ReadLine::Gnu (hacked to suit my needs), and this was the actual test using it:

package main; # [498] ~ > vec($m0,$_,1)=1 for 0,2,8,9,10 result: '' package main; # [499] ~ > scalar reverse unpack 'b16',$m0 result: '0000011100000101'

So not only am I a fool, but a dishonest person also, a liar and a faker, whose code is not to be trusted. At all!

update: No Sir, I did not pretend to show tested code, as you claim after having edited your answer (without note). I did, and you can beat me to death for that, forget the scalar. Next.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Replies are listed 'Best First'.
Re^6: Displaying bit-vectors with Most Significant Bits to the left?
by AnomalousMonk (Bishop) on Jan 05, 2020 at 18:39 UTC
    ... this was the actual test ...

    So why not post the actual test and its result in the first place? Confusion and wasteful discussion | quarreling could have been avoided.


    Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2020-05-27 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (162 votes). Check out past polls.

    Notices?