develooper Front page | perl.perl5.porters | Postings from January 2014

Re: [perl #121105] During a system(), unquoted Perl vars are evaluated _after_ the fork() call

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
January 30, 2014 13:53
Subject:
Re: [perl #121105] During a system(), unquoted Perl vars are evaluated _after_ the fork() call
Message ID:
20140130135335.23942.qmail@lists-nntp.develooper.com
Gian Piero Carrubba wrote:
> $ perl -l
> print $$;
> system 'echo', "$$";
> system 'echo', $$;
> 32480
> 32480
> 32488
> 
> The last pid printed (from the system() with unquoted $$) is the pid of
> the child process, not the one of the parent.

I think this is related to #104084.


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About