in reply to Re^5: the "our" declaration ?!!
in thread the "our" declaration ?!!
I know that "use warnings" produces to "Use of uninitialized value" for option 1, but that's not the point here.use strict; no warnings; #no strict "vars"; # option1 our $x; # option2 { package one; $x="one"; print $x; } { package two; print $x; } __END__ 1: one 2: oneone
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: the "our" declaration ?!!
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 |