Jenda,
On Wednesday, April 10, 2002, at 07:27 , Jenda Krynicky wrote:
> From: drieux <[EMAIL PROTECTED]>
>> Unless someone can come up with a really HOT idea as to why one
>> would want to put a 'package declaration' in an application -
[..]
>> if the package assertion makes sense here
>> then this should be a Module
>> hence start with h2xs
>
> Well ... imagine you need some custom class of objects in your
> application or need to extend some class. Something small and
> specific so it doesn't deserve it's own file, but the functions and
> variables do have to belong to another package.
we may have 'missed' each other by a mark, allow me to redefine
the rool more verbosely
let a = you are writing an application
let b = the need for a package declaration makes sense here
if ( a AND b)
then
that which follows the package assertion needs to be in a
perl module appropriately built with h2xs in compliance
with being CPAN style ready.
If on the other hand one is already into the evil art of writing
perl modules - then clearly one already groks the idea of using
package declarations inside of a package so as to sub class.
If You are cutting perl modules and do not grok packages -
one really should seek therapy for this problem.
ciao
drieux
---
remember boys and girls, all 'rules of thumb'
come with four fingers, a palm and several
class extensions - while on the other hand....
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]