From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 14 November 2005 16:10
To: [email protected]
Subject: Time::stuff vs. Time qw(stuff)?

> Gurus, 
> 
> I thought these were interchangeable, but unless I'm doing something
really D-U-M, they're not. 
> 
>         use Time::Local; 
>         use Time::localtime; 

They are not interchangeable. See the doco for each, they do different
things.

> 
> That works. This doesn't: 
> 
>         use Time qw( Local localtime ); 
> 
> I get "Can't locate Time.pm in @INC ... blah blah blah" for an error
message and the compile breaks.  So, what > am I doing wrong that this
won't work? All I'm trying to do is eliminate the one "use" line... 

That's not how use works. See the doco 'perldoc -f use'. 'Time::Local'
and 'Time::localtime are valid module names because files
'Time/Local.pm' and 'Time/localtime.pm' exist. The error message tells
you why 'Time' is not a valid module name.

HTH

-- 
Brian Raven



=================================
Atos Euronext Market Solutions Disclaimer
=================================
The information contained in this e-mail is confidential and solely for the 
intended addressee(s). Unauthorised reproduction, disclosure, modification, 
and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immediately 
and delete it from your system. The views expressed in this message do not 
necessarily reflect those of Atos Euronext Market Solutions.

L'information contenue dans cet e-mail est confidentielle et uniquement 
destinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee. 
Toute copie, publication ou diffusion de cet email est interdite. Si cet e-mail 
vous parvient par erreur, nous vous prions de bien vouloir prevenir 
l'expediteur immediatement et d'effacer le e-mail et annexes jointes de votre 
systeme. Le contenu de ce message electronique ne represente pas necessairement 
la position ou le point de vue d'Atos Euronext Market Solutions.


_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to