Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Hacking Packages

by Kevin_Raymer (Initiate)
on Jul 09, 2007 at 17:30 UTC ( [id://625662]=perlquestion: print w/replies, xml ) Need Help??

Kevin_Raymer has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Hacking Packages
by talexb (Chancellor) on Jul 09, 2007 at 19:03 UTC

    Your formatting was OK -- it was between code tags -- but think about how readable it is. Not very. Something like this would have been better, I think:

    Can't locate Sub/ in @INC (@INC contains: /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5. 8.4/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.3/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.2/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.1/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.4/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.2/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.1/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at ./test line 5.
    So you need to install Sub::Multi, right?

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Re: Hacking Packages
by blazar (Canon) on Jul 10, 2007 at 10:14 UTC
    I am trying to make my packages "clickable" so I can install them before running the script.

    In which sense "clickable"? Generally packages are not "cliackable" and this does not have anything to do with installation. Which Perl distro are you using? Under which OS? You may set up a file association thingie for Perl packages to work on click under some file manager thingie and do something useful, but I've never heard anyone having such a need nor do I see it as a particularly useful "feature".

    Also, you say "my packages", but the one that appears to be missing is a CPAN one, namely Sub::Multi (unless you rewrote it yourself) thus you'd better install it by means of your distro's specific package management tool, most probably either or ppm.

    My editor doesn't allow me to click on them.

    I have no notion of how an editor would allow one to click on a package. What do you mean exactly?

    So basically my problem is that I cannot click on the packages to install them hence the script fails.

    XY problem I guess: check the tutorials for Modules: How to Create, Install, and Use.

Re: Hacking Packages
by Anonymous Monk on Jul 10, 2007 at 08:43 UTC
    Perl is not in charge of clicking
      Perl is not in charge of clicking
      However, one can use the click() method provided by WWW::Mechanize.
      my $perl = WWW::Mechanize->new; $perl->get($something_interesting_from_the_net); $perl->click;
      Now, whether the clicking works or not, is another matter ;-)

      Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

Re: Hacking Packages
by b10m (Vicar) on Jul 11, 2007 at 13:49 UTC

    You can always use lib if you installed the package at a "weird" location:

    use lib '/path/to/where/ever/you/installed/the/module';

    All code is usually tested, but rarely trusted.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://625662]
Approved by randyk
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-22 01:12 GMT
Find Nodes?
    Voting Booth?

    No recent polls found