I could have sworn this code used to work...
But now if do() returns false nothing happens. In order for the error to trigger I have to use:
I'm guessing I could also write that as:
Code:
my $href = do($path) or return $self->fatal("Oops: $!");But now if do() returns false nothing happens. In order for the error to trigger I have to use:
Code:
my $href = do($path) || return $self->fatal("Oops: $!");I'm guessing I could also write that as:
Code:
(my $href = do($path)) or return $self->fatal("Oops: $!");