Re: question about local our

2008-07-14 Thread Gunnar Hjalmarsson
Roman Makurin wrote: I want to ask whats difference between usage of local and local our http://perl.apache.org/docs/general/perl_reference/perl_reference.html#Remedies_for_Inner_Subroutines -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail:

Re: question about local our

2008-07-14 Thread Rob Dixon
Gunnar Hjalmarsson wrote: Roman Makurin wrote: I want to ask whats difference between usage of local and local our http://perl.apache.org/docs/general/perl_reference/perl_reference.html#Remedies_for_Inner_Subroutines But also read this

question about local our

2008-07-13 Thread Roman Makurin
Hi All! I want to ask whats difference between usage of local and local our Here is example code: #!/usr/bin/perl use strict; use warnings; our $i = 0; sub t_func1 { local $i = 1; print \$i = $i\n; } sub t_func2 { local our $i = 2; print \$i = $i\n; }