> -Original Message-
> From: Matthew Blacklow [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 30, 2001 8:24 PM
> To: [EMAIL PROTECTED]
> Subject: Order of operations!
>
>
> $pid = getppid;
> ...
> $run = "kill -9 $pid";
> system($run);
S
1, 2001 4:35 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Order of operations!
.
Could be a problem of path of a.out
(Why you use kill -9 ? You can use a normal TERM signal, with kill $pid)
Walter
> Below is some perl code which works fine when executed locally, however
Could be a problem of path of a.out
(Why you use kill -9 ? You can use a normal TERM signal, with kill $pid)
Walter
> Below is some perl code which works fine when executed locally, however when
> I telnet to the system it is on and and it is run things are not run in the
> correct orde
Have you tried using the complete path to a.out? (ie
/home/myname/bin/a.out)
On Wed, 31 Oct 2001, Matthew Blacklow wrote:
> Below is some perl code which works fine when executed locally, however when
> I telnet to the system it is on and and it is run things are not run in the
> correct order.
Below is some perl code which works fine when executed locally, however when
I telnet to the system it is on and and it is run things are not run in the
correct order. In fact it skips the first system call all together.
Any suggestions on how to fix this?
#!/usr/bin/perl
$pid = getppid;
print
It checks for the existence of a value and then increments if there is one.
> -Original Message-
> From: Cohan, Drew [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 07, 2001 10:46 AM
> To: [EMAIL PROTECTED]
> Subject: order of operations
>
>
> Hi,
Hi Drew,
On Fri, Sep 07, 2001 at 11:45:34AM -0400, Cohan, Drew ([EMAIL PROTECTED])
spew-ed forth:
> Hi,
>
> I don't understand something about Perl's order of operations with this
> code:
>
> ...if ($name_count{$member}++)...
Using ++ (or --) after the variable
Hi,
I don't understand something about Perl's order of operations with this
code:
...if ($name_count{$member}++)...
Does Perl retrieve the value for $name_count{$member}, increase it by one,
and then evaluate the if() statement? If that's true, then I don't
understand how