3 ms·
Can anyone explain what happens to all the undefined vars to someone unfamiliar with Perl?
by ricardobeat 13y ago
Can anyone explain what happens to all the undefined vars to someone unfamiliar with Perl?
- jrockway 13y agoThey have the value "undef".
- tudorconstantin 13y agoVariables in perl are preceded by a sigil($,@,%,*). Those undefined words are not variables, but, at least in perl5, when you don't use strict, perl tries several fallbacks in order to find their value: see if it is a function (called without paranthesys), see if it is a constant, use it as a string otherwise.