Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
 I havn't tried it yet, but it may be possible to put the GD package 
on your remote machine if they let you compile. You should
be able to ssh to your homedir and do it. Here is an excerpt from
the mod-perl-in-homedirs.html.

8.1. Installing Perl Modules into a Directory of Choice

   Since without superuser permissions you aren't allowed to install
   modules into system directories like /usr/lib/perl5, you need to find
   out how to install the modules under your home directory. It's easy.

   First you have to decide where to install the modules. The simplest
   approach is to simulate the portion of the / file system relevant to
   Perl under your home directory. Actually we need only two directories:

/home/stas/bin
/home/stas/lib

   We don't have to create them, since that will be done automatically
   when the first module is installed. 99% of the files will go into the
   lib directory. Occasionally, when some module distribution comes with
   Perl scripts, these will go into the bin directory. This directory
   will be created if it doesn't exist.

   Let's install the CGI.pm package, which includes a few other CGI::*
   modules. As usual, download the package from the CPAN repository,
   unpack it and chdir to the newly-created directory.

   Now do a standard perl Makefile.PL to prepare a Makefile, but this
   time tell MakeMaker to use your Perl installation directories instead
   of the defaults.

% perl Makefile.PL PREFIX=/home/stas

   PREFIX=/home/stas is the only part of the installation process which
   is different from usual. Note that if you don't like how MakeMaker
   chooses the rest of the directories, or if you are using an older
   version of it which requires an explicit declaration of all the target
   directories, you should do this:

% perl Makefile.PL PREFIX=/home/stas \
  INSTALLPRIVLIB=/home/stas/lib/perl5 \
  INSTALLSCRIPT=/home/stas/bin \
  INSTALLSITELIB=/home/stas/lib/perl5/site_perl \
  INSTALLBIN=/home/stas/bin \
  INSTALLMAN1DIR=/home/stas/lib/perl5/man  \
  INSTALLMAN3DIR=/home/stas/lib/perl5/man3

   The rest is as usual:

% make
% make test
% make install

 

In reply to Re: Is it possible to use modules without installing them? by zentara
in thread Is it possible to use modules without installing them? by Nemp

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    [choroba]: On the other hand, lots of options to receive the requests :-)
    [Corion]: ... values to be used. For example, I think for headers, one would want to have various kinds of Content-Encoding headers, but for the get_parameters one would have various kinds of Bobby Tables
    [choroba]: What about [metadoc:// Algorithm::Loops]?
    [Corion]: choroba: Yeah, but handing off the request to Dancer,Plack, Mojolicious,LWP is easy once I have the data filled into some structure ;))
    [choroba]: Algorithm::Loops
    [Corion]: choroba: I'm using that to generate the permutations, but I don't know how the user can pass the intended values to my function in a sane way
    [Corion]: I have a prototype that permutes the get_parameters, but the values used for the get parameters should be different from the values used for the headers and potentially for parts of the URL
    [Corion]: But yes, in general, my approach will be "split the URL into another set of parameters, generate an array of allowed values for each parameter and then NestedLoops() over the set"
    [choroba]: hmm... so you need something like bag from Test::Deep, but not for checking, but for generation
    [Corion]: This has the dual use of easily requesting sequential URLs and also being suitable for testing

    How do I use this? | Other CB clients
    Other Users?
    Others chanting in the Monastery: (9)
    As of 2017-01-17 08:16 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      Do you watch meteor showers?




      Results (152 votes). Check out past polls.