develooper Front page | perl.perl5.porters | Postings from April 2000

RE: :Deparse doesn't grok private subroutine variables

Thread Next
From:
Konovalov, Vadim
Date:
April 20, 2000 07:02
Subject:
RE: :Deparse doesn't grok private subroutine variables
Message ID:
402099F49BEED211999700805FC7359F4DF4E9@ru0028exch01.spb.lucent.com
> While being my crazy old self, and writing strtok() in Perl 
> for the hell
> of it, I came across this unhappiness in Deparse:
> 
>   {
>     my $foo = 10;
>     sub bar { print $foo }
>   }
> 
> deparses to:
> 
>     sub bar {
>         print $foo;
>     }
>     {
>         my $foo = 10;
>     }
> 
> This is most undesir[e]able.

Why?

I am happy to see to what code it deparses.

Good luck,
Vadim

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