G
Graham
I want to be able to allow a variable to be set in one subroutine, and use
its value in another subroutine, but I obviously can't do this if I use the
'my' or 'local' functions on the variable in each subroutine. You might say
just dispense with 'my' or 'local' and let the variable be global. Well I
was doing that and had no problem until I used ActiveState's 'Perl App' to
create a standalone executable. This doesn't seem to like global variables
and is virtually telling me I must 'use strict', and I would if I could, but
I don't know how to transfer a vairiable's value (I never did fully
understand lexical scope) Any ideas anyone?
its value in another subroutine, but I obviously can't do this if I use the
'my' or 'local' functions on the variable in each subroutine. You might say
just dispense with 'my' or 'local' and let the variable be global. Well I
was doing that and had no problem until I used ActiveState's 'Perl App' to
create a standalone executable. This doesn't seem to like global variables
and is virtually telling me I must 'use strict', and I would if I could, but
I don't know how to transfer a vairiable's value (I never did fully
understand lexical scope) Any ideas anyone?