Using Mail::Sender

2002-11-23 Thread Tin-Shan Chau
Using the following program, I managed to send a message with an attachment to multiple recipients using option 2, but not with options 1 and 3: >> use Mail::Sender; $address1 = '[EMAIL PROTECTED]'; $address2 = '[EMAIL PROTECTED]'; #$recipients

Trouble with Term::Readkey

2002-11-18 Thread Tin-Shan Chau
I was trying to use the Term::ReadKey module as follows: use Term::ReadKey; ReadMode ('noecho'); $password = ReadLine(0); but got the following: Can't locate Configure.pm in @INC (@INC contains: n:

Use of Search::Dict

2002-11-16 Thread Tin-Shan Chau
Can anyone point me to an example of how to use the above module? The ActiveState documentation is, to say the least, cryptic. I looked at "The PERL Cookbook", "PERL Programming", and also tried using PERLDOC, but did not come up with anything. Some of my questions are: 1. How should the inpu

Re: Sending mail under Windows 95/2000

2002-11-13 Thread Tin-Shan Chau
nson" <[EMAIL PROTECTED]> To: "'Kipp, James'" <[EMAIL PROTECTED]>; "'Tin-Shan Chau'" <[EMAIL PROTECTED]>; "'Help on PERL'" <[EMAIL PROTECTED]> Sent: Monday, November 11, 2002 12:26 PM Subject: RE: Sending mail unde

Sending mail under Windows 95/2000

2002-11-11 Thread Tin-Shan Chau
I have been trying to get the sample program in the ActiveState documentation to work, but without much success. Here is the code: >>> use Net::SMTP; $smtp = Net::SMTP->new('shaw.ca'); # connect to an SMTP server $smtp->mai

Testing for hidden or system files

2002-10-26 Thread Tin-Shan Chau
Does anyone know how to test for a hidden or system file under Windows 95/2000? Thanks in advance for your help.

Help with 'use'

2002-10-13 Thread Tin-Shan Chau
I have a module as follows: >>> package Test; require Exporter; our @ISA = qw(Exporter); our @EXPORT = qw(print_name print_test); sub print_test() { print "test\n"; } sub print_name() { my $file = shift; print "$file\n"; }

Problem with UNPACK

2002-07-28 Thread Tin-Shan Chau
I have run into the following problem with UNPACK: If I concatenate the packed values of a list to a string, when I use the unpack operation to put the values back into an array, the last element is missing. I can only get around the problem by specifying the exact number of elements to unpac

Problem with UNPACK

2002-07-25 Thread Tin-Shan Chau
I have run into the following problem: If I concatenate the packed values of a list to a string, when I use the unpack operation to put the values back into an array, the last element is missing. I can only get around the problem by specifying the exact number of elements to unpack. And if I

Problem with UNPACK

2002-07-25 Thread Tin-Shan Chau
I have run into the following problem: If I concatenate the packed values of a list to a string, when I use the unpack operation to put the values back into an array, the last element is missing. I can only get around the problem by specifying the exact number of elements to unpack. And if I