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
"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. :-)
"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
"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]
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
> "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
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
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