Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Package install issue

by BrowserUk (Patriarch)
on Jun 13, 2016 at 16:15 UTC ( [id://1165494]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Package install issue
in thread Package install issue

Instead of jumping through hoops trying to install a huge pile of stuff just in order to get a repl on failure, try something like this:

$SIG{ __DIE__ } = sub { require Carp; Carp::Cluck( @_ ); while( 1 ) { my $code = <STDIN>; print eval $code; } };

Of course, that's just a minimalist implementation that may not even run as I typed it straight into the browser, but it's probably easier to fix that up to something usable than chase through all the dependencies of the module you're trying to use.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice. Not understood.

Replies are listed 'Best First'.
Re^4: Package install issue
by Chaoui05 (Scribe) on Jun 13, 2016 at 16:38 UTC

    Hey BrowserUk

    Thanks for your approach. I will try it as soon as i can and replied you as usual.

    *****Lost in translation****TIMTOWTOI****
Re^4: Package install issue
by Chaoui05 (Scribe) on Jun 14, 2016 at 09:16 UTC

    Thanks again.

    It seems to be interesting to do it by coding too.

    Finally i did like that : cpanm -vnf Carp::REPL

    And it worked fine.

    *****Lost in translation****TIMTOWTOI****
      Finally i did like that : cpanm -vnf Carp::REPL

      And that somehow worked around the dependency on IO::Tty?


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
      In the absence of evidence, opinion is indistinguishable from prejudice. Not understood.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1165494]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-18 08:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found