in reply to warnings pragma anomaly
undef $foo; # Similar to $foo = undef; but also frees memory. [download]
As such, it's perfectly fine to call undef in void context.