It worked perfectly. Just what I needed. Thanks! "Brett W. McCoy" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, 6 Dec 2001, Lanceo wrote: > > > What is the syntax to use perl to check to see if a certain module exists? > > For example I would like to check (on the command line) if the LWP module is > > properly installed. I am hoping for something like: perl {a couple of > > switches here} LWP > > and a message returned that tells me that it is or is not installed. > > I usually do: > > perl -M<modulename> > > It will give an error if the module isn't available and return if it is. > Sme modules will also have a version number available, so you can try: > > perl -M<modulename> -e 'print $<modulename>::VERSION' > > -- Brett > http://www.chapelperilous.net/ > ------------------------------------------------------------------------ > Mistrust first impulses; they are always right. >
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]