--- David Blevins <[EMAIL PROTECTED]> wrote:
>     local @fileList = reverse sort `ls $list*.list`;
>     local $current = $fileList[0];
>     local $previous = $fileList[1];

Local is great for a few things, but almost universally you should be
using my(). local() can cause you some real (and unexpected) headaches.

For example, a local() variable really isn't. You can only local() a
global (go figure =o) and the value is hidden, possibly replaced with
whatever you assign, and then restored at the end of that scope. But
what if you make a function call in that scope, to a function that also
uses that variable? It'll have the local()'d value.

Use my() unless you know why. =o)

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Reply via email to