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

Re^2: serial raw write problem with multidigit decimal and strings (bits bytes pack)

by ultibuzz (Monk)
on Mar 10, 2013 at 20:09 UTC ( #1022688=note: print w/replies, xml ) Need Help??


in reply to Re: serial raw write problem with multidigit decimal and strings (bits bytes pack)
in thread serial raw write problem with multidigit decimal and strings

pack looks like a good start, i'll experiment with it a bit :)
pack 'i' 150 works as expected submits 150,
pack 'c' 150 produces warning "Character in 'c' format wrapped in pack" and submits garbage, 150 is not a char i would guess :)
i'll test some more complex things and will come back with the results.

kind regards
alex



UPDATE
pack seems to work in some cases, but also produces funny results in other cases.
As it seems,it depends on the function it is used on, will further experiment with it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1022688]
help
Chatterbox?
[LanX]: ... test

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2017-03-28 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (330 votes). Check out past polls.