hi I have a program in which I need to declare a great many global variables.You don't need to declare global variables in Perl, but if you want to initialize them, just do so in "file.pl", then put do "file.pl"; at the top of your program. (BTW, if you use the phrase "global variable" on this site, you'll probably get a cascade of useless boilerplate answers.)
In reply to Re: global variables defined in an external file
by educated_foo
in thread global variables defined in an external file
by fionbarr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |