writing to perllocal.pod fails if it was never created;
Gurusamy Sarathy [Mon, 11 Oct 1999 19:15:46 +0000 (19:15 +0000)]
tweak pseudo-hash example (both suggested by Michael G Schwern
<schwern@pobox.com>)

p4raw-id: //depot/perl@4345

lib/ExtUtils/MM_Unix.pm
pod/perlref.pod

index 9d14e97..9a8aefb 100644 (file)
@@ -2135,6 +2135,7 @@ pure_site_install ::
                }.$self->catdir('$(PERL_ARCHLIB)','auto','$(FULLEXT)').q{
 
 doc_perl_install ::
+       -}.$self->{NOECHO}.q{$(MKPATH) $(INSTALLARCHLIB)
        -}.$self->{NOECHO}.q{$(DOC_INSTALL) \
                "Module" "$(NAME)" \
                "installed into" "$(INSTALLPRIVLIB)" \
@@ -2144,6 +2145,7 @@ doc_perl_install ::
                >> }.$self->catfile('$(INSTALLARCHLIB)','perllocal.pod').q{
 
 doc_site_install ::
+       -}.$self->{NOECHO}.q{$(MKPATH) $(INSTALLARCHLIB)
        -}.$self->{NOECHO}.q{$(DOC_INSTALL) \
                "Module" "$(NAME)" \
                "installed into" "$(INSTALLSITELIB)" \
@@ -2510,6 +2512,7 @@ $tmp/perlmain.c: $makefilename}, q{
     push @m, q{
 doc_inst_perl:
        }.$self->{NOECHO}.q{echo Appending installation info to $(INSTALLARCHLIB)/perllocal.pod
+       -}.$self->{NOECHO}.q{$(MKPATH) $(INSTALLARCHLIB)
        -}.$self->{NOECHO}.q{$(DOC_INSTALL) \
                "Perl binary" "$(MAP_TARGET)" \
                MAP_STATIC "$(MAP_STATIC)" \
index 753cd01..12bc581 100644 (file)
@@ -579,7 +579,7 @@ The second is to use exists() on the hash reference sitting in the
 first array element.  This checks to see if the given key is a valid
 field in the pseudo-hash.
 
-       exists $phash->[0]{pants};      # true, 'pants' is a valid field
+       exists $phash->[0]{bar};        # true, 'bar' is a valid field
        exists $phash->[0]{shoes};      # false, 'shoes' can't be used
 
 =head2 Function Templates