in reply to Re: Need some help with a dodgy variable
in thread Variable Scope
It would be pointless me posting my code as my question explains it exactly how it is.
Ive only been using perl for the last two weeks, so bear with me please.
I tried using 'use strict' but that makes my program to not work at all. Its definately not a my variable.
heres an example then of what i mean:
Imagine these subs have been called accordingly, and when the last one is called, it just says "Hello ".
Ive only been using perl for the last two weeks, so bear with me please.
I tried using 'use strict' but that makes my program to not work at all. Its definately not a my variable.
heres an example then of what i mean:
sub this_sub { $this_variable = "Jeff"; } sub that_sub { print "Hello "."$this_variable"; }
Imagine these subs have been called accordingly, and when the last one is called, it just says "Hello ".
In Section
Seekers of Perl Wisdom