Questions regarding Makefile.PL

2003-09-16 Thread Yehuda Berlinger
First of all, I may be trying to do the wrong thing, so set me straight. I 
am having trouble with the installation. I am trying to decypher 
ExtUtils::MakeMaker man pages.

I am creating a distribution for 'Pod/Index.pm' and 'podindex' (a perl 
exe) .

My directory looks like:

Changes
Index.pm.PL
Makefile.PL
MANIFEST
Pod/Index.pm.unconfigured
podindex
README
t/1.t
I want 'podindex' to be installed into $..BIN. Got that.

I want Index.pm.PL to run and create Pod/Index.pm out of 
Pod/Index.pm.unconfigured . Got that. Actually what I want is for 
Pod/Index.pm.PL to run to create Pod/Index.pm out of 
Pod/Index.pm.unconfigured . How do I do that?

I want 'Pod/Index.pm' to be installed into somewhere. Should it go into 
..LIB/*/Pod/Index.pm, ..LIB/site_perl/*/Pod/Index.pm or 
..LIB/vendor_perl/*/Pod/Index.pm ?

I want the pod in podindex and Index.pm.unconfigured to be manified into 
... uh what? And how would I do that?

Yehuda


Re: Another sticky module naming issue

2003-09-16 Thread Sam Vilain
On Mon, 15 Sep 2003 17:25, Jenda Krynicky wrote;

  > Like http://search.cpan.org/search?query=Data::Lazy&mode=module 
  > right? :-)

Yes, exactly.

  > The only thing in Defer.pm that I do not have in Data::Lazy is the 
  > attribute syntax. Maybe it'd be better to add that to my module 
  > instead of uploading a brand new module :-)

Does your module untie the original object when it is read the first
time, where it could?  This avoids the tie overhead on every
subsequent access.

Do you provide any interface other than tie?  For instance, I have an
`overload' interface that passes method calls and accesses onto the
lazy object, so you can do stuff like this:

my $dbh = defer { DBI->connect(@dsn) };

Changing the `defer' to `do' to have it execute immediately is one
nice feature of this syntax.

  > Patches welcome, otherwise I'll have a look at Defer.pm when I get 
  > some free time and steal the attribute stuff from there ... that is 
  > if Sam doesn't mind ;-)

Not at all, please go ahead.
-- 
Sam Vilain, [EMAIL PROTECTED]

It is unwise to be too sure of one's own wisdom. It is healthy to be
reminded that the strongest might weaken and the wisest might err.
 -- Mahatma Gandhi