in reply to Re^3: the "our" declaration ?!!
in thread the "our" declaration ?!!
use strict; no strict "vars"; # option1 #our $x; # option2 $x="main"; { package other; $x="other"; print $x; } print $x; __END__ 1: othermain 2: otherother
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: the "our" declaration ?!!
by ikegami (Patriarch) on Jan 20, 2009 at 22:16 UTC | |
by tilly (Archbishop) on Jan 20, 2009 at 23:02 UTC | |
by ikegami (Patriarch) on Jan 21, 2009 at 01:42 UTC | |
by tilly (Archbishop) on Jan 21, 2009 at 04:25 UTC | |
by LanX (Saint) on Jan 21, 2009 at 12:24 UTC | |
| |
by LanX (Saint) on Jan 20, 2009 at 22:42 UTC | |
by ikegami (Patriarch) on Jan 20, 2009 at 22:51 UTC | |
by LanX (Saint) on Jan 20, 2009 at 23:47 UTC | |
by ikegami (Patriarch) on Jan 21, 2009 at 01:36 UTC |