in reply to if multiple arg return or single fail?

my ($x, $y) = mysub(); if (defined $x and defined $y) { # do stuff... } else { #returned single zero. # do other stuff... }

Replies are listed 'Best First'.
Re^2: if multiple arg return or single fail?
by raybies (Chaplain) on Mar 07, 2011 at 16:55 UTC
    Yeah, that works, but I wanted it all... in a single line if line. So, I decided to go with changing the function to return an empty list. Thanks guys!