Vitaly Sinitsin <> wrote: > 10x al lot for a short and useful reply. > Regarding 2 (require "$file.pm";): > I must "use" and not "require" for compile project+all packages > before loading and not in run time. So, may be you know howto make it > using "use"?
I'm not sure I understand what you mean by that. Jan's suggestion does pretty much what you asked for. As far as I know, the only way to execute a use statement with the module name in a variable is to use the string form of eval (e.g. eval "use $module" or die "Failed to load $module: [EMAIL PROTECTED]"), and the earliest time that that can be executed would be in a BEGIN block (see 'perldoc perlmod' for when that is). Perhaps if you could say what you are trying to accomplish using a module name in a variable, someone may be able to suggest an alternative method. 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
