in reply to Re: Trouble emailing zip file
in thread Trouble emailing zip file

Hi hippo

I guess I need to get into the habit of using chomp to take care of the white spaces.

Regarding the use of email modules. My work environment is so strict and chances are that we don't have the modules installed.

What is the command to check if a module is installed?

Thanks for you help.

Replies are listed 'Best First'.
Re^3: Trouble emailing zip file
by hippo (Archbishop) on Jul 03, 2018 at 13:47 UTC
    I guess I need to get into the habit of using chomp to take care of the white spaces.

    chomp won't save you here because the whitespace is in the middle of $subject and you probably do actually want to retain the spaces anyway.

    My work environment is so strict and chances are that we don't have the modules installed.

    Which OS? Many of them have packages for perl modules.

    What is the command to check if a module is installed?

    TIMTOWTDI but a simple test to see if (eg.) DBI is installed could be

    perl -MDBI -e 1

    which will just return you to the prompt if it is loaded or throw an error otherwise.

      "Which OS? Many of them have packages for perl modules."

      Solaris 10

Re^3: Trouble emailing zip file
by Corion (Patriarch) on Jul 03, 2018 at 13:50 UTC
    perldoc -l The::Module

    tells you

    No documentation found for "The::Module"

    ... and

    perl -MThe::Module=99999999 -e1

    tells you

    Can't locate The/Module.pm in @INC (@INC contains: ...)

    ... for misssing modules.

    If the module actually is installed, both will output nothing.

      Thanks!

Re^3: Trouble emailing zip file
by Anonymous Monk on Jul 03, 2018 at 13:53 UTC