On Sun, 14 Nov 2004, Harbhajan Julka wrote:

> Can someone tell the difference between a perl module
> and a perl package?

Packages implement modules. 

A set of code preceded by a 'package $foo;' statement can be referenced 
by another set of code preceded by a 'use $foo', provided that the first 
code is saved somewhere that the second code can find it (i.e. the file 
is in the same directory as the script that uses it, or in another 
directory referred to in the built-in @INC array).

Does this answer your question?


-- 
Chris Devers

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to