On Sun, 02 Apr 2006 09:11:13 -0700, Bryan Harris wrote: >> On Sat, 01 Apr 2006 09:29:47 -0700, Bryan Harris wrote: >>> This looks very interesting... I downloaded it, but I have no idea how >>> to install it, though. I'm a modules-idiot. I tried putting the .pm >>> file in the current directory and putting "use TimeTick.pm;" at the >>> beginning of my code, but it doesn't work. I'd like to be able to just >>> haul the .pm file around with my script and not have to "install" it on >>> each machine I use... >> >> Make that >> >> use TimeTick; > Okay, now I get errors:
I didn't check my own module after seeing your first attempt. It's actually use Time::TimeTick; as in the synopsis at http://search.cpan.org/~pjs/Time-TimeTick-0.04/lib/Time/TimeTick.pm#SYNOPSIS . > ps. I have the Alpaca book, I have the whole Perl Bookshelf CD (best > $60 I ever spent) -- but even after reading it the whole "modules" > process seems confusing to me, I think there's a magic key that my brain > doesn't have yet. (Also, my code has to be portable, lots of people use > my scripts and I can't install modules on their machines.) You can package the modules with the scripts. I was just installing TWiki, for instance, which is written in Perl and uses many CPAN modules. It comes with the ones that it needs, unpacks them into its own directory, and directs its scripts to look in that directory. -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>