Or something like that. When I use strict, I am told that I have to predeclare the variable. When I use my on it, I am unable to use it anywhere else. Are there any obvious ways around this that you know of? I understand why it works this way, I'm just frustrated because I can't figure out how to get around it.if ($myvariable=~/myregex/) { $this_variable="1"; } else { $this_variable="0"; }
In reply to Declaring Variables by Stamp_Guy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |