D
Danny
what is the difference between using
my $test = 5;
$test = 5;
can I use either one?
Thanks Danny
my $test = 5;
$test = 5;
can I use either one?
Thanks Danny
Danny said:what is the difference between using
my $test = 5;
$test = 5;
Danny said:what is the difference between using
my $test = 5;
$test = 5;
can I use either one?
Thanks Danny
Robin said:you *can* use either one, but if you want to use strict "vars", you have
to use the first one, because strict requires you to declare your
variables, see the documentation for strict.
Sherm Pendley said:An incomplete answer, but at least that's better than a wrong answer. You're
See also:
perldoc -q scoping
perldoc -f my
perldoc -f our
perldoc perlsub (section "Private Variables via my()")
sherm--
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.