On Sun, 9 Feb 2003 19:23:16 +0100, [EMAIL PROTECTED] (Anthony) wrote:
>Hi,
>
>But like i said on my second post i wanted to learn how to receive message
>from pipe.
OK, here are two simple scripts which should show you the idea.
One is a reader and one is a writer. Always start and stop the
read
anthony wrote:
> Hi,
>
> But like i said on my second post i wanted to learn how to receive message
> from pipe.
>
> anthony
Hi Anthony,
That's fine. but use the pipe for it's designed purpose, which is NOT to return data
to a calling program. Try constructing your own version of "more", mayb
Hi,
But like i said on my second post i wanted to learn how to receive message
from pipe.
anthony
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
anthony wrote:
> Hi,
>
> for the while loop i figure out before your answers, anyhow, my question was
> should i send the whole array or not?
> also is it possible to retrieve the data from the pipe or not?
>
> Anthony
No and no. There are better ways than using a pipe. Pipes makes sense only w
On Sun, 9 Feb 2003 11:02:52 +0100, [EMAIL PROTECTED] (Anthony) wrote:
>Hi,
>
>for the while loop i figure out before your answers, anyhow, my question was
>should i send the whole array or not?
>also is it possible to retrieve the data from the pipe or not?
If you don't want to use a module like
Hi,
for the while loop i figure out before your answers, anyhow, my question was
should i send the whole array or not?
also is it possible to retrieve the data from the pipe or not?
Anthony
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
John W. Krahn wrote:
> my @file = ;
>
> Then at the end of the program:
>
> __DATA__
> tony
> boby
> zombie
> anthony
> martine
> eric
> charlie
I forgot you could do that! Thanks John.
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
"John W. Krahn" wrote:
>
> Anthony wrote:
> >
> > @file = qw (tony boby zombie anthony martine eric charlie);
>
> It seems like you need newlines at the end of each element.
>
> my @file = < tony
> boby
> zombie
> anthony
> martine
> eric
> charlie
> FILE
Sorry, that's not going to work. :-)
Anthony wrote:
>
> Hi,
Hello,
> what i'm creating is just an EXTREMELY script that sends an array to another
> script via PIPE.
> This is what i have:
>
>
> #! /usr/bin/perl
use warnings;
use strict;
> @file = qw (tony boby zombie anthony martine eric charlie);
It seems like
Anthony wrote:
> Hi,
>
> what i'm creating is just an EXTREMELY script that sends an array to
> another script via PIPE.
Never coded in EXTREMELY before, but I'll have a go ;-)
> This is what i have:
>
>
> #! /usr/bin/perl
ALWAYS:
use strict;
use warnings;
> @file = qw
Hi,
i'm trying to learn pipe, so i need start somewhere i could of just say
sort @file print @file and that is it but like i said i want to learn the
mechanism of pipe
Anthony
"Anthony" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> what i'm creating
anthony wrote:
Hi,
what i'm creating is just an EXTREMELY script that sends an array to another
script via PIPE.
This is what i have:
#! /usr/bin/perl
@file = qw (tony boby zombie anthony martine eric charlie);
open(SORT, "| perl sorted.pl");
while(@file){
chomp $_;
print SORT
Hi,
what i'm creating is just an EXTREMELY script that sends an array to another
script via PIPE.
This is what i have:
#! /usr/bin/perl
@file = qw (tony boby zombie anthony martine eric charlie);
open(SORT, "| perl sorted.pl");
while(@file){
chomp $_;
print SORT "$_\n";
}
print
13 matches
Mail list logo