I have the following code in a plugin:
die "GOT HERE";
print $IN->header();
print Links::SiteHTML::display('cart_verify_error', { undef_error => 1 } );
}
....the die part is for debugging. When I run the script it dies with "GOT HERE" so I know we are at the else block, however as soon as I remove the die() I just get an infinite loop and no template shows.
Can anyone think why?
Code:
else { die "GOT HERE";
print $IN->header();
print Links::SiteHTML::display('cart_verify_error', { undef_error => 1 } );
}
....the die part is for debugging. When I run the script it dies with "GOT HERE" so I know we are at the else block, however as soon as I remove the die() I just get an infinite loop and no template shows.
Can anyone think why?