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' ... )