Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Perl Strings != C strings?

by MidLifeXis (Prior)
on Aug 24, 2012 at 18:59 UTC ( #989616=note: print w/ replies, xml ) Need Help??


in reply to Perl Strings != C strings?

Define the format for your strings, and follow the format on both sides of the FIFO. In perl, \0 is the null character. Also see chr(0). I think that there may also be a way using pack to create a null terminated string.

--MidLifeXis


Comment on Re: Perl Strings != C strings?
Select or Download Code
Re^2: Perl Strings != C strings?
by Mr. Newb (Acolyte) on Aug 24, 2012 at 19:11 UTC
    Of course; my format is the null-terminated string, because I'm familiar with it.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2014-12-21 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (108 votes), past polls