As has already been pointed out, just get into the habit of always using strict and warnings on all your code. It lets Perl remind you about anything that's a bit dodgy.
Second, it's a bad idea to mix a declaration with anything more than a straight initialization. To me, that has a bad 'code smell'. And Perl also thinks it's a bad idea.
In reply to Re: "my" declaration problem
by talexb
in thread "my" declaration problem
by Hosen1989
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |