Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: Defining a sub within a sub: OK?

by AnomalousMonk (Archbishop)
on Oct 14, 2009 at 22:50 UTC ( [id://801234]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Defining a sub within a sub: OK?
in thread Defining a sub within a sub: OK?

What I meant by 'globally scoped' was 'accessible from any point of execution within the program', and package variables do fit this definition.

I agree with jwkrahn's point about the 'code block' (as defined in the referenced discussion of blocks). What I thought was meant was a 'code block' of the sort associated with sort and other such built-ins, e.g.,
    my @sorted = sort { $a <=> $b } @unsorted;

(Hang on, I may be experiencing a 'lobe block' ... )

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-03-29 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found