In Perl "undef" is actually a value. To set $var to absolutely nothing: $var=();I don't understand. Can you show an example in which the results of the $var = (); and $var = undef; and undef $var; statements would differ?
Would there ever be an advantage (other than obfuscation) to writing $var = (); instead of undef $var;?
In reply to Re^2: reset particular variable
by AnomalousMonk
in thread reset particular variable
by abubacker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |