Hi, On Thu, 8 Aug 2019 08:21:24 +0530 Chankey Pathak <chankey...@gmail.com> wrote:
> You can create a signal handler for die and handle the exception in there. > Refer https://users.cs.cf.ac.uk/Dave.Marshall/PERL/node116.html > Also see block eval - https://perldoc.pl/functions/eval - or one of its wrappers like https://metacpan.org/pod/Try::Tiny . Caveat: I maintain https://metacpan.org/pod/Error and recommend against using the latter. > On Thu, 8 Aug, 2019, 8:15 AM Eliza, <e...@chinabuckets.com> wrote: > > > Hello, > > > > I use such a module from other people. > > In this module there is the "die" statement, for example, > > > > connect(...) or die $!; > > > > Then my main program will die follow up this "die". > > But I don't want the caller to die even if "die" was happened in the > > module. > > How to handle with it? > > > > Thank you. > > Eliza > > > > -- > > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > > For additional commands, e-mail: beginners-h...@perl.org > > http://learn.perl.org/ > > > > > > -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Perl Elems to Avoid - http://perl-begin.org/tutorials/bad-elements/ John: Hey, we are completely non-violent vampires. We don’t suck blood. Selina: I thought all vampires suck blood. John: Bullocks, hen. Vampires come in all shapes and sizes. — http://www.shlomifish.org/humour/Selina-Mandrake/ Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/