develooper Front page | perl.perl5.porters | Postings from August 2008

probably unwanted behaviour of lexical filehandles

Thread Next
From:
Dr.Ruud
Date:
August 31, 2008 03:49
Subject:
probably unwanted behaviour of lexical filehandles
Message ID:
20080831104919.780.qmail@lists.develooper.com
Source-Message-ID: <48b6e449$0$199$e4fe514c@news.xs4all.nl> 
<a recent discussion on clpm>

Compare:

perl -e '
    open CHILD, "sleep 30 |";
    die "byebye";
'

to:

perl -e '
    open my $child, "sleep 30 |";
    die "byebye";
'


The latter waits for the sleep to finish. 

-- 
Affijn, Ruud

"Gewoon is een tijger."

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