[pgh-pm] Time::HighRes

Daniel dan at onelifemedia.com
Sat Apr 17 07:05:00 PDT 2010


In addition, I'm on an Ubuntu 9.10 machine and do not have ActiveState 
perl so I do not have ppm.  I install cpan modules by going to the 
terminal and typing:

cpan Time::HighRes

The first time you use the cpan command there are some configuration 
hoops to jump though, just press enter to take the default for anything 
you are unsure of.

Cheers!

Malcolm Nooning wrote:
> I went to a Windows prompt box and entered "ppm", which popped up the 
> ActiveState Perl Package Manager.  It took a long time, but eventually 
> the scroll window with a long list of packages loaded up.  I scrolled 
> down to "Time::HighRes", so, for my Perl 5.10 at least, it is 
> available as a prepackaged, um, package.  I already had it installed 
> but I clicked on the little green (mark for install) icon anyway, as 
> there is a slightly newer version available.  I then clicked on the 
> green arrow to install it, etc.
>
> The only real pain is that the ppm seems to freeze the part of my 
> screen when it is doing something, and it seems to take numbers of 
> minutes.  Eventually it finished.
>
> If your Perl is from ActiveState, but a different version, well, it 
> should still work the same way.
>
> Good luck.
>
> Greg Akins wrote:
>> Trying to setup Whistle control on my Mac following this blog entry
>> http://www.mostlymaths.net/2009/09/whistle-control-your-computer.html
>>
>> There is a suggestion to use Time::HighRes, but I get the following 
>> error:
>>
>> Can't locate Time/HighRes.pm in @INC (@INC contains:
>> /Library/Perl/Updates/5.10.0
>> /System/Library/Perl/5.10.0/darwin-thread-multi-2level
>> /System/Library/Perl/5.10.0
>> /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0
>> /Network/Library/Perl/5.10.0/darwin-thread-multi-2level
>> /Network/Library/Perl/5.10.0 /Network/Library/Perl
>> /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level
>> /System/Library/Perl/Extras/5.10.0 .) at cmdWhistle.pl line 5.
>> BEGIN failed--compilation aborted at cmdWhistle.pl line 5.
>>
>> I suspect the library just isn't installed.. But I'm very inexperience
>> at Perl.. Is this just a matter of going to CPAN and finding it?  Any
>> other pointers before I screw up my Perl installation?
>>
>>   
> _______________________________________________
> pgh-pm mailing list
> pgh-pm at pm.org
> http://mail.pm.org/mailman/listinfo/pgh-pm



More information about the pgh-pm mailing list