Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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

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?
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 about the Monastery: (11)
As of 2016-06-27 20:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (344 votes). Check out past polls.