in reply to Case Exhaustion Tree

I would probably write it as
$code ||= $unit; if (ref $args) { @args = @$args; $code .= q{(@args)}; } else { @args = (); } @ARGV = @$argv if ref $argv;

YMMV.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: Case Exhaustion Tree
by Xiong (Hermit) on Feb 03, 2014 at 18:36 UTC

    No; the approach is the general solution to exhausting unusual combinations of conditionals. A DB man might say I'd denormalized -- I dunno, I'm not a DB man.

    Death only closes a Man's Reputation, and determines it as good or bad. —Joseph Addison