in reply to Maximum End Time

Please read Coping with Scoping. It is much cleaner to use my instead of local.

Basically local is something you would use in Perl 4. In Perl 5 you almost always want my.

You want to know how to use it and/or why you should use it? Read the page I mentioned earlier.