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:
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
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;
}