Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^2: Problems with pack-ing data.

by seann (Initiate)
on Apr 26, 2021 at 18:18 UTC ( #11131737=note: print w/replies, xml ) Need Help??

in reply to Re: Problems with pack-ing data.
in thread Problems with pack-ing data.

Thanks for your help.

I added the round function to my pack line:

pack "w*",map { round $_*100 } @data[$start..$end];

and the program works as expected now.

Replies are listed 'Best First'.
Re^3: Problems with pack-ing data.
by BillKSmith (Monsignor) on Apr 27, 2021 at 13:31 UTC
    I am quite sure that you will open the article that choroba linked to, declare it 'More than I care to know', and close it immediately. Please do not do that. I recently decided that I had procrastinated long enough and read most of it carefully. I was rewarded with an elegant solution to a problem I first encountered over forty years ago. I wish that I had believed the title when I first encountered this article.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2022-06-30 04:18 GMT
Find Nodes?
    Voting Booth?
    My most frequent journeys are powered by:

    Results (97 votes). Check out past polls.