RE: magic import of extensions?

2001-08-07 Thread Tu, Hanming
Yes. Here is how 1) In your MyPackage.pm, you import the Exporter module as require Exporter; our @ISA = qw(Exporter); our @EXPORT = qw(init doThis doThat); 2) install MyPackage in a search directory, i.e., including your path in @INC 3) Then in your scr.pl or other programmer's scripts use M

RE: Regular Expressions

2001-08-06 Thread Tu, Hanming
You should use qr instead of qq. -- Hanming -Original Message- From: Adimoolam Narayanan [mailto:[EMAIL PROTECTED]] Sent: Monday, August 06, 2001 3:18 PM To: [EMAIL PROTECTED] Subject: Regular Expressions Hi, In a nutshell, I have been trying to store a reg. exp. in a variable so that

How to construct test scripts?

2001-08-06 Thread Tu, Hanming
Hi, I wrote a few Perl modules, but I have never written a structured testing script. I am studying ExtUtils::MakeMaker and Test modules, but have difficult to understand them. It will be greatly appreciated if some of you can give me some examples or point me to some references! Thanks. Hanmin