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

t_func1();
t_func2();
print "\$i = $i\n";


according to it, I can`t see any difference. But I think it is :) Where 
can I read more about such things ?

Thanks

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


Reply via email to