Re: Pipe Help

2003-02-10 Thread zentara
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

Re: Pipe Help

2003-02-09 Thread R. Joseph Newton
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

Re: Pipe Help

2003-02-09 Thread anthony
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]

Re: Pipe Help

2003-02-09 Thread R. Joseph Newton
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

Re: Pipe Help

2003-02-09 Thread zentara
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

Re: Pipe Help

2003-02-09 Thread anthony
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]

Re: Pipe Help

2003-02-08 Thread Rob Dixon
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]

Re: Pipe Help

2003-02-08 Thread John W. Krahn
"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. :-)

Re: Pipe Help

2003-02-08 Thread John W. Krahn
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

Re: Pipe Help

2003-02-08 Thread Rob Dixon
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

Re: Pipe Help

2003-02-08 Thread anthony
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

Re: Pipe Help

2003-02-08 Thread Wiggins d'Anconia
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

Pipe Help

2003-02-08 Thread anthony
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