in reply to Re: Specifying main:: scope
in thread Specifying main:: scope

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.

Replies are listed 'Best First'.
Re: Re: Re: Specifying main:: scope
by runrig (Abbot) on Dec 05, 2001 at 21:54 UTC
    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.