Re: how to catch die in a module

2019-08-07 Thread Eliza
Hi all, Try::Tiny seems work fine to me. thanks. 在 2019/8/8 14:19, Shlomi Fish 写道: You can create a signal handler for die and handle the exception in there. Referhttps://users.cs.cf.ac.uk/Dave.Marshall/PERL/node116.html Also see block eval -https://perldoc.pl/functions/eval - or one of its

Re: how to catch die in a module

2019-08-07 Thread Andrew Solomon
Hi Eliza, For a simpler approach without "action at a distance" wrap the call which might trigger the die in an eval. For example: https://gist.github.com/andrewsolomon/e43522deebd71c6539ed12026f82788b Once you feel comfortable with this you can explore various libraries for handling this in a m

Re: Install Problems: Net::Google::Spreadsheets

2019-08-07 Thread Mike
I believe somebody else responded to this, but . . . I'll help if I can. If you want me to try to install Net::Google::Spreadsheets I can.  I am on Win7 - Strawberry Perl V 5.26.1 Mike On 8/5/2019 9:47 AM, James Kerwin wrote: Hi All, I'm having some difficulty installing a Perl Module; N

Re: how to catch die in a module

2019-08-07 Thread Chankey Pathak
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 On Thu, 8 Aug, 2019, 8:15 AM Eliza, wrote: > Hello, > > I use such a module from other people. > In this module there is the "die" statement, for example, >

how to catch die in a module

2019-08-07 Thread Eliza
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. Eli

Re: Install Problems: Net::Google::Spreadsheets

2019-08-07 Thread James Kerwin
Thanks Shlomi, That was helpful. It transpires that I added nothing to my @INC, not permanently. A complete misunderstanding on my part. I went through the CPAN set-up again and paid slightly more attention. I managed to get some things installed, but one dependency keeps on failing tests: Net::G

Re: perl's anaconda

2019-08-07 Thread Eliza
Yes I have tried perlbrew this day. It behaves well. I was thinking perlbrew is influenced by ruby's homebrew for mac package admin. Is it? regards, Eliza If you're working on a Ubuntu server you might find these step by step instructions useful https://blog.geekuni.com/2015/05/how-to-inst

Re: perl's anaconda

2019-08-07 Thread Andrew Solomon
Hi Eliza, If you're working on a Ubuntu server you might find these step by step instructions useful https://blog.geekuni.com/2015/05/how-to-install-different-versions-of-perl.html On Wed, Aug 7, 2019 at 12:37 PM Илья Рассадин wrote: > There is two main tools to install different versions of pe

Re: perl's anaconda

2019-08-07 Thread Eliza
That's great. I appreciate it. For example: cpanm -L local DBI@1.01 will install DBI into local subdirectory of your current dir Later on, you can load this version of DBI package with perl -I key. perl -I local/lib/perl5 -E 'use DBI; say $DBI::VERSION' -- To unsubscribe, e-mail: beginn

Re: perl's anaconda

2019-08-07 Thread Илья Рассадин
There is two main tools to install different versions of perl - perlbrew https://perlbrew.pl/ and plenv https://github.com/tokuhirom/plenv. If you want different project environments, you can use tools like cpanm https://metacpan.org/pod/cpanm For example: cpanm -L local DBI@1.01 will instal

Re: perl's anaconda

2019-08-07 Thread Eliza
That's smart. I will look into it. thanks for help. You can install multiple versions of Perl and in each of them you can install specific versions of your library. On Wed, 7 Aug, 2019, 3:03 PM Eliza, > wrote: That looks interesting. For library install

Re: perl's anaconda

2019-08-07 Thread Chankey Pathak
You can install multiple versions of Perl and in each of them you can install specific versions of your library. On Wed, 7 Aug, 2019, 3:03 PM Eliza, wrote: > That looks interesting. > For library installation under perlbrew, can it install more than one > release for the same library? for exampl

Re: perl's anaconda

2019-08-07 Thread Eliza
That looks interesting. For library installation under perlbrew, can it install more than one release for the same library? for example, DBI-1.1.0, DBI-1.1.1 etc. regards, Eliza Check out perlbrew https://perlbrew.pl/ On Wed, 7 Aug, 2019, 2:55 PM Eliza, > wrote

Re: perl's anaconda

2019-08-07 Thread Chankey Pathak
Check out perlbrew https://perlbrew.pl/ On Wed, 7 Aug, 2019, 2:55 PM Eliza, wrote: > Hello, > > Is there a toolkit like python's anaconda which has multi-versions of > perl installation for different development environment? > > https://www.anaconda.com/ > > regards, > Eliza > > -- > To unsubscr

perl's anaconda

2019-08-07 Thread Eliza
Hello, Is there a toolkit like python's anaconda which has multi-versions of perl installation for different development environment? https://www.anaconda.com/ regards, Eliza -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org ht