in reply to Specifying main:: scope

Our esteemed japhy recently covered just that (and some other sorting issues).

Replies are listed 'Best First'.
Re: Re: Specifying main:: scope
by dragonchild (Archbishop) on Dec 05, 2001 at 18:42 UTC
    I notice that japhy says to use local and Ovid says to use my ... anyone have a preference and reason?

    ------
    We are the carpenters and bricklayers of the Information Age.

    Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

      Ovid is just using @_ directly. If the arguments are passed to the sub via local or my variables, it doesn't matter what they're called. The important thing is to use prototypes for the sort function. With that in mind, I think I'd still avoid local, and either use @_ directly or lexical/my variables.