Bob,
Try:
if ($^O eq 'MSWin32') {
require 'Net::SMTP.pm';
Net::SMTP->import();
}
This is essentialy what 'use Net::SMTP' does, but
'require' is performed at runtime, while 'use' is performed
at compile time.
John
On Thu, May 18, 2000
On 05/18/00, "Bob Hoffmaster <[EMAIL PROTECTED]>" wrote:
> Is there an quick/simple/easy way to construct a run-time conditional
> "include" statement to use or not use a particular module?
Yes,
perldoc -f use
HTH,
Douglas Wilson
---
You are currently subscribed to perl-win32-users as: [archive@
If you don't want it loaded you have to wrap the use statement in an eval.
> Behalf Of Bob Hoffmaster
>
>
> Is there an quick/simple/easy way to construct a run-time conditional
> "include" statement to use or not use a particular module?
>
> I want to use
Is there an quick/simple/easy way to construct a run-time conditional
"include" statement to use or not use a particular module?
I want to use the Net:::SMTP module if running on a NT system, else don't
use if on a UNIX system.
something like this:
if (
Hung-Hsien Chang <[EMAIL PROTECTED]> writes:
> Does it work ? Net::SMTP on NT machine or Wind 95?
If your Win32 machine has access to a machine running an
SMTP server, Net::SMTP works.
--David
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe
Does it work ? Net::SMTP on NT machine or Wind 95?
Has anything tried it yet? ( I am using solaris so...)
Thankyou.
All the best,
Hubert
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non
Scott K Purcell [mailto:[EMAIL PROTECTED]] wrote:
> Sent: Tuesday, May 09, 2000 4:53 AM
> To: Perl-Win32-Users Mailing List
> Subject: Assistance With Net::SMTP V2
>
>
> Hello,
> I am considering using the Net::SMTP module.
>
> I did the examples in the POD, and ca
Hello,
I am considering using the Net::SMTP module.
I did the examples in the POD, and can send a email to myself. Except for I
can't figure out how to get a "subject line", or a "proper from line" or
even an attachment. Anyway, the documentation is vague (at least to
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Perl-Win32-Users Mailing List"
<[EMAIL PROTECTED]>
Sent: Friday, May 05, 2000 8:32 PM
Subject: Help please: I want to send myself an email with (or without) Net
::SMTP::Server from an NT 4 workstation
>
>
&g
I want to send myself an email with (or without) Net::SMTP::Server from an
NT 4 workstation. I have the module (and it's dependent modules
installed, but I can't get it to work Info about
Net::SMTP::Server is located at
http://www.macgyver.org/software/p
10 matches
Mail list logo