in reply to Who's who in interpackage global vars
At any rate -- I discovered why I couldn't make the $main::var work (which I had tried) - I use 'use strict'. Check the code:
use strict; my $fish = "Trout"; print "Works: $fish\n"; print "Not : $main::fish\n";
Which doesn't work as I'd expect (or would hope it to) at all.
Can you chaps enlighten me further as to this conundra?
--JP
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Who's who in interpackage global vars
by TheoPetersen (Priest) on Feb 20, 2001 at 20:47 UTC |