in reply to Accessing Variables in Different Subroutines
both => sub { select_language(); select_animal(); }
Then I ran your code with action=both and lo and behold! The value was the same in both the subroutines.
Do you expect the value to be the same for different runs of the script?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Accessing Variables in Different Subroutines
by stefl (Acolyte) on Mar 19, 2015 at 15:49 UTC | |
by choroba (Cardinal) on Mar 19, 2015 at 15:51 UTC | |
by stefl (Acolyte) on Mar 19, 2015 at 15:54 UTC |