HOw do I create a package:

2001-11-03 Thread AMORE,JUAN (HP-Roseville,ex1)

Hello,
CAn anyone show me how to create a package called StringPrint and place this
package in a filename called StringPrint.pm using a subroutine, called
print_str, that prints a string passed to the subroutine defined by the
module.

Many Thanks!
JA

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: HOw do I create a package:

2001-11-03 Thread Jos I. Boumans

you're talking about simple OO programming...
i wrote a tutorial on just that subject, i think it will help you along with
your project.

take a look here:
http://japh.nu/index.cgi?base=tuts

hth,
Jos

- Original Message -
From: AMORE,JUAN (HP-Roseville,ex1) [EMAIL PROTECTED]
To: Beginners@Perl. Org (E-mail) [EMAIL PROTECTED]
Sent: Saturday, November 03, 2001 7:18 PM
Subject: HOw do I create a package:


 Hello,
 CAn anyone show me how to create a package called StringPrint and place
this
 package in a filename called StringPrint.pm using a subroutine, called
 print_str, that prints a string passed to the subroutine defined by the
 module.

 Many Thanks!
 JA

 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: HOw do I create a package:

2001-11-03 Thread Dave Storrs


With all due respect, this list is here to help beginner perl programmers
deal with programming problems, not to do people's homework for them.
(The 'hp.com' address (which prominently dispalys an ad for hp's online
university) is a bit of a giveaway.)

Read this:  perldoc perlmod

Dave


On Sat, 3 Nov 2001, AMORE,JUAN (HP-Roseville,ex1) wrote:

 Hello,
 CAn anyone show me how to create a package called StringPrint and place this
 package in a filename called StringPrint.pm using a subroutine, called
 print_str, that prints a string passed to the subroutine defined by the
 module.

 Many Thanks!
 JA



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]