Perl doesn't offer a way to check whether or not a variable has been initialized.
However, scalar variables that haven't been explicitly initialized with some value happen to have the value of undef
by default. You are right about defined
being the right way to check whether or not a…
</p>
Perl doesn't offer a way to check whether or not a variable has been initialized
Pathetic
Top comments (0)