You have several ways to undef a list of vars already. The most simple I know is ( $from, $to ) = ();
[1]