develooper Front page | perl.perl5.porters | Postings from February 2015

Re: [perl #123775] Args to 'system' not evaluated before forking,making $$ wrong

Thread Previous | Thread Next
From:
Jim Avera
Date:
February 12, 2015 23:24
Subject:
Re: [perl #123775] Args to 'system' not evaluated before forking,making $$ wrong
Message ID:
54DD3631.5000507@gmail.com
> The workaround is ... system(..., "$$", ...)
Thanks.  0+$$ works too.    But the problem is a "hidden gotcha" -- the 
behavior is not what a reasonable programmer would expect.   It would be 
better to get rid of the non-obvious behavior if it's not necessary.

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