You want to use a source filter.  The source filter is a Perl module that
filters the module before it is run, so it could be used to show/hide
debugging info, or in your case decrypt it.  The Perl Journal had a good
article on it a while ago, check it out and then see what pre-built filters
are available on CPAN (looks like Filter::CBC might do what you want).

[TPJ article]
http://www.samag.com/documents/s=1287/sam03030004/

[Filter::CBC readme]
http://www.cpan.org/modules/by-module/Filter/Filter-CBC-0.08.readme

Rob


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 10:32 AM
To: [EMAIL PROTECTED]
Subject: encrypt a module?


I am coding a module that will be shared across several other groups
applications but there are calls in it that only certain groups should use.
Rather than making separate modules for each group having only the
functions they need, I'd like to just distribute one copy and only tell
them what they need to know.  But if they can go pokiing around in there
(and they will) they might get frisky and start mucking about with things
they shouldn't be.

Is there a way to distribute a perl module in such a way that it is
"use"able but is not rendered in plain text? by "use"able I mean simply
that you need only have a use Foo::Bar; to import it, not something more
complicated.  I've seen things for scripts, but does the same apply to
modules(.pm)?

Thanks,

Chuck



_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to