Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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.


Replies are listed 'Best First'.
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?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2016-10-25 01:12 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (313 votes). Check out past polls.