Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by kelan (Deacon)
on Oct 10, 2003 at 19:52 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-16 12:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found