I have a very basic question about print statements. I am looking for a bug in my program. I think I found it, and I'm using print statements to help me out. So, say I have this global variable $variable. I also have a local variable by the same name within the subroutine &subroutine. If I add in a print statement within &subroutine asking perl to print $variable, will it print the global variable $variable or the local variable $variable? If it prints the value of the global variable, how would I get Perl to print the value of the local variable? Any advice would solve all my life problems,
Molly
In reply to Basic Print statement question by molly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |