in reply to "my" declaration problem
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.
|
|---|