Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Is it possible to use modules without installing them?

by BrowserUk (Pope)
on Aug 31, 2002 at 15:34 UTC ( #194344=note: print w/replies, xml ) Need Help??

in reply to Is it possible to use modules without installing them?

In general, if the module concerned is a "pure perl" module, there is nothing (provided you take the copyrights etc with it) of including it into your script as source.

However, many modules have XS and/or C components and they obviously won't work without their compiled bits.

I'm not familiar with the internals of GD so don't know which is the case for it.

Being a graphics module, it's quite likely that at least some of it has been optomised to C for speed?

Well It's better than the Abottoire, but Yorkshire!

Replies are listed 'Best First'.
Re: Re: Is it possible to use modules without installing them?
by Nemp (Pilgrim) on Aug 31, 2002 at 16:44 UTC
    Thanks for the reply!

    Unfortunately you've provided me with another question now, specifically for GD and for any other module generically, is there a way to find out if a module is "pure Perl"?

    I guess I could just go and look through the source code but I'm still pretty much a novice at Perl so I might skip parts I don't understand and not recognize them as being XS or C components. Maybe there is a module on CPAN that analyzes a given file to determine if it's pure Perl or not?

    Many thanks for any help and the help so far :)
      You can tell if a module is pure Perl or not by examining the dslip information.

      One module which does this is CPANPLUS (it also does a whole lot more, including module installation without root access, which I recommend over including the module source in your program*). The default shell includes the 'l' command which will give information, including the language used. might also give dslip info, but I don't know it well enough to say if it does or not.

      GD is C and Perl and a C compiler is needed. If your ISP allows you to use a compiler, you should still be able to install it without being root.

      [1] For instructions on how to do this with CPANPLUS, refer to the FAQ (available on the website).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://194344]
[Corion]: Yay. I've now published (at $work) that random Excel workbook where on one sheet you enter your SQL and on the other sheet, you have a button and receive the results. I'm so evil in enabling cow-orkers to self-supply ;)
[Corion]: It's close to my Perl script where you paste in the SQL and get the result as XLSX file, but I guess the Excel sheet is more user-friendly :)
[choroba]: What drivers does it support? ;-)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2018-07-18 13:00 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (392 votes). Check out past polls.