Directing output

2002-11-30 Thread Dennis LaPine
What would be the cleanest way to direct the output to two separate pages? I have two identical pages, the second page auto refreshes and I'd like any new post's from the main page to appear on the auto refresh page. Would a $pull be in order here, or edit the script that runs the main page? Any h

Re: directing output

2001-12-21 Thread Michael R. Wolf
"John W. Krahn" <[EMAIL PROTECTED]> writes: > > > my $MBody = `who`; > > > my $MBody = qx(who); # same thing > > > > IMHO qx() is more readable. I often miss seeing the > > back-ticks, or see them as single-quotes during a code skim. > > You need an editor with good syntax highlighting. :-)

Re: directing output

2001-12-21 Thread John W. Krahn
"Michael R. Wolf" wrote: > > "John W. Krahn" <[EMAIL PROTECTED]> writes: > > > my $MBody = `who`; > > my $MBody = qx(who); # same thing > > IMHO qx() is more readable. I often miss seeing the > back-ticks, or see them as single-quotes during a code skim. You need an editor with good syntax h

Re: directing output

2001-12-21 Thread Michael R. Wolf
"John W. Krahn" <[EMAIL PROTECTED]> writes: > my $MBody = `who`; > my $MBody = qx(who); # same thing IMHO qx() is more readable. I often miss seeing the back-ticks, or see them as single-quotes during a code skim. -- Michael R. Wolf All mammals learn by playing! [EMAIL PROTECTED]

Re: directing output

2001-12-19 Thread John W. Krahn
Aaron wrote: > > I have the following code that I am using to try and get a better > understanding of how to read from a program and then process the output in > any way needed: > > #!/usr/bin/perl -w > > open(IN, 'who | '); > while() { >$MBody .= $_; > } > > So this section gives me the

Re: directing output

2001-12-19 Thread smoot
> "Shawn" <[EMAIL PROTECTED]> said: > #!/usr/bin/perl -w > > use strict; > open(IN, 'who | '); > my @array=; > close(IN); > > open(FILE,'>file.txt') or die "Can't write file.txt: $!\n"; > print FILE @array; > close(FILE); Or the line at a time case when your input is potentially arbitrarily si

Re: directing output

2001-12-19 Thread Shawn
ose(FILE); exit; Shawn - Original Message - From: "Aaron" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 19, 2001 9:20 AM Subject: directing output > I have the following code that I am using to try and get a better > understanding o

directing output

2001-12-19 Thread Aaron
I have the following code that I am using to try and get a better understanding of how to read from a program and then process the output in any way needed: #!/usr/bin/perl -w open(IN, 'who | '); while() { $MBody .= $_; } So this section gives me the contents of the who command. Now, wha