develooper Front page | perl.perl6.language | Postings from February 2001

Re: assign to magic name-of-function variable instead of "return"

Thread Previous | Thread Next
From:
John Porter
Date:
February 5, 2001 09:49
Subject:
Re: assign to magic name-of-function variable instead of "return"
Message ID:
20010205124919.A12785@min.net
Damian Conway wrote:
> 
> RFC 271 handles this. Your example would be:
> 
>         sub readit {
>             open F, "< $f" ...
>             scalar(<F>)
>         }
>         post readit {
>             close F;
>         }

Really?  Are lexicals in the sub visible in the post handler?

(Of course I realize *F does not illustrate this...)

-- 
John Porter

Ann wenno haddum billizac...


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