C
chriswaltham
I'm very new to Perl, 'm having trouble on an OS X Serve (10.4.6) with
perl (5.6.1). In a nutshell, my problem that the 'r' command in the
CPAN shell is giving me only a partial output of what's installed on a
machine. And, yes, I know 5.6.1 is an old version of perl, but I do
have the latest Bundle::CPAN
cpan> r
Package namespace installed latest in CPAN file
(output snipped)
Text::Tabs 98.112801 2005.0824
MUIR/modules/Text-Tabs+Wrap-2005.0824.tar.gz
XSLoader 0.01 0.06
SAPER/XSLoader-0.06.tar.gz
(more snipped)
In this case, note that Time::Local (the module I'm trying to
troubleshoot) is not listed by CPAN as being installed. Yet when I try
to install it:
cpan> install Time::Local
Time::Local is up to date (1.12).
Is there a way to force the 'r' command to somehow re-generate it's
reports? I'm trying to port an application (that I didn't write) from
Solaris to OS X, which is why I'm trying to match perl versions and
thus using perl 5.6.1. On the Solaris box, 'r' in CPAN tells me
Time::Local is installed, whereas on the OS X box it is not listed.
I'm trying to troubleshoot Time::Local because I get this error message
when making a perl/MySQL call: "Software error: Can't use an undefined
value as a symbol reference at (eval 10) line 11." Line 11 of the code
in question reads: "my $timestamps = localtime();"
Thanks!
Chris
perl (5.6.1). In a nutshell, my problem that the 'r' command in the
CPAN shell is giving me only a partial output of what's installed on a
machine. And, yes, I know 5.6.1 is an old version of perl, but I do
have the latest Bundle::CPAN
cpan> r
Package namespace installed latest in CPAN file
(output snipped)
Text::Tabs 98.112801 2005.0824
MUIR/modules/Text-Tabs+Wrap-2005.0824.tar.gz
XSLoader 0.01 0.06
SAPER/XSLoader-0.06.tar.gz
(more snipped)
In this case, note that Time::Local (the module I'm trying to
troubleshoot) is not listed by CPAN as being installed. Yet when I try
to install it:
cpan> install Time::Local
Time::Local is up to date (1.12).
Is there a way to force the 'r' command to somehow re-generate it's
reports? I'm trying to port an application (that I didn't write) from
Solaris to OS X, which is why I'm trying to match perl versions and
thus using perl 5.6.1. On the Solaris box, 'r' in CPAN tells me
Time::Local is installed, whereas on the OS X box it is not listed.
I'm trying to troubleshoot Time::Local because I get this error message
when making a perl/MySQL call: "Software error: Can't use an undefined
value as a symbol reference at (eval 10) line 11." Line 11 of the code
in question reads: "my $timestamps = localtime();"
Thanks!
Chris