undef($variable) sets a variable to undef.
undef(my $variable) declares a variable and sets it to undef in the same statement. However, scalar variables default to undef anyway so there's no point in it.
In reply to Re: Questions about curious idiom seen in package
by tobyink
in thread Questions about curious idiom seen in package
by SimonSaysCake
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |