On Sun, 02 Oct 2005 21:08:48 +0200, Gerard Robin wrote:
> I pick up this example in a tutorial (it is old but it exists and there are 
> many examples
> and most of them are understandable (imho)) because I searched some example 
> of scripts
> which used local. I encounter some problems to figure out local ;-) 

If you're trying to learn best Perl practices, using tutorials that old is
not a good idea.  It's like someone who wants to learn English studying
Cockney rhyming slang.  Why do that when there are modern alternatives
that are easier to write, easier to understand, easier to read, and easier
to maintain?  We can refer you to any number of tutorials and books in
that vein.

If you really want to learn about dynamic variables just for the heck of
it, see Mark Jason Dominus's article "Coping With Scoping" (google) and
links therefrom.  Pay attention to his admonition, "Never use 'local'"...

-- 
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to