Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Perl Strings != C strings?

by MidLifeXis (Monsignor)
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 chanting in the Monastery: (9)
As of 2015-07-03 06:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (48 votes), past polls