Help for this page

Select Code to Download


  1. or download this
    package Foo;
    our $var;
    $var = 10;
    
  2. or download this
    package Foo;
    our $d;               # FIRST
    ...
    poletti@PolettiX:~/sviluppo/perl$ perl our.pl
    in Bar::bar $d is equal to Foo
    in Bar::baz $d is equal to Bar
    
  3. or download this
    Bar::baz()> is in the scope of the second.
    <p>In your example, you actually access <c>$Bar::d
    
  4. or download this
       our($d) = @_;