Re: Perl Equivelent of C++ program



John Wilkinson <john.wilkinson@xxxxxxxxxxx> wrote in comp.lang.perl.misc:
Hi,
I have a simple C++ program example, I would dearly love to swap to perl.

It's a C program.

It uses pipes, which I do not understand, and I was wondering if anyone

It doesn't use pipes as such. It reads from standard input and writes
to standard output. If these happen to be pipes that makes no
difference to your program.

could convert this bit of code for me:

[has been done, code snipped]

Anno
.



Relevant Pages

  • Re: Perl Equivelent of C++ program
    ... It uses pipes, which I do not understand, and I was wondering if anyone ... int main { ... This is supposed to be a simple example server, ... starting by looking for Perl examples instead. ...
    (comp.lang.perl.misc)
  • Re: encrypting files
    ... >> Standard input isn't necessarily attached to a keyboard. ... Pipes are just what it says - a method ... be read, stdout and stderr can be written to. ... it to a network socket. ...
    (sci.crypt)
  • Re: self-tailing output checker
    ... > control where output goes via standard redirection, ... > I'm trying to solve this more elegantly with a Perl module. ... > it would cause the program which uses it to create two pipes and fork. ... > One side of the fork would connect stdout and stderr to the write ends ...
    (comp.unix.programmer)
  • Re: Pipe Between Programs
    ... Can anyone supply the code for creating two direction pipes between two Perl ... between a Perl program and the Gnuplot graphics program. ... It is conventional to make filehandle names all-uppercase. ...
    (comp.lang.perl.misc)
  • Re: opening multiple pipes
    ... > in unix, we can use pipes such as ... Would appreciate an example on the above can be implemented in perl.. ... You need to be very careful about deadlocks: ...
    (comp.lang.perl.misc)