Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Parsing HTML

by Tanktalus (Canon)
on Feb 01, 2005 at 21:56 UTC ( [id://427066]=note: print w/replies, xml ) Need Help??


in reply to Parsing HTML

I'm going to suggest pursuing the modules. I know, I know. No permission. To that, I have two answers, depending on where you are:

  1. You're at work, and you are assigned a project which involves parsing HTML. My response has always been to my manager: help get these modules installed, or the cost (in effort) will be double or more. Someone else has already solved this part of my assignment, why spend company money redoing that?
  2. You're at school, and you're just playing with your school-sponsored unix account. You may still be able to get your sysadmin to install a module if you ask nicely. I do understand how unlikely that is. So, next best thing: install it to a local directory (perl Makefile.PL PREFIX=~/perllib), and then use "use lib '/home/me/perllib'" in your scripts, or "export PERL5LIB=~/perllib" in your environment. Better yet, get and install perl on your home computer - you'll have all the access you need there.
But maybe that's because I'm a lazy arse who likes to shake up management once in a while ;-)

Replies are listed 'Best First'.
Re^2: Parsing HTML
by Grundle (Scribe) on Feb 01, 2005 at 22:28 UTC
    I had this same annoying problem when trying to host a web-site with a particular stingy provider. Things get complicated when they disallow CPAN, and when you only have FTP access (so you cannot even try to run the make-file if you manually upload the whole module).

    In effect I had to install the module on my local box. and then FTP the necessary components to the "host" machine (just as you said in my local directory). It is the same conundrum, but complicated by the fact that you cannot generate anything remotely. I believe that once you put it in your local dir and then include the following lines in your code

    #/usr/bin/perl BEGIN { unshift(@INC, "<directory-path-of-the-modules>"); }
    It should recognize it fine

    I tried complaining to the provider but they said "In the name of security we can not allow you to do these things etc. ad-nauseum." Hopefully you aren't in this same situtation.
      use lib, Luke!

      Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')

      Don't fool yourself.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-03-28 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found