Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Socket Newbie (perl newbie, too...)

by wog (Curate)
on Jun 18, 2001 at 22:20 UTC ( #89388=note: print w/replies, xml ) Need Help??


in reply to Socket Newbie (perl newbie, too...)

Your problem is in the use of unpack("B*", ...). The unpack there takes raw binary data and turn it into a human-readable string of 1s and 0s. The pack you are using already returns a raw data that is probably suitable for sending over the socket. (agh! see update below.)

You should probably be using syswrite or you should turn off buffering.

update: Oops, mental error, the pack format's wrong. See node below.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2023-04-02 05:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?