Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Re: Re^3: Perl to Ruby translator?

by kelan (Deacon)
on Oct 10, 2003 at 19:52 UTC ( #298389=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re^3: Perl to Ruby translator?
in thread Perl to Ruby translator?

It's a closure because it contains a reference to a lexical variable ($q) from a parent scope. It could cause problems if later you reassigned $q and thought it would change inside the sub, or thought it go away after the scope of $q ended.

kelan


Perl6 Grammar Student

  • Comment on Re: Re: Re: Re^3: Perl to Ruby translator?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://298389]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2022-11-26 22:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?