[HPADM] Help with Perl

From: Binkley Robert - rbinkl (Robert.Binkley@acxiom.com)
Date: Tue May 20 2003 - 11:13:56 EDT


Hello admins

  I am sorry for posting this on your site.
  But I have no where else to turn..
  Does any one know a way to install perl dependency , without using cpan

I am trying to write so code to do so, but the syntax for if dependency is
needed , go an get module needed.

Please help..

##############start of code#########################
 #!/usr/bin/perl

        opendir( DIR, "/u02/perl/module" ) or die "Unable to open directory:
$!\n";
        @fileList = grep { /(\.gz|\.tgz)$/ } readdir( DIR );
        closedir( DIR );

        chdir( "/u02/perl/module" );

        foreach $file ( @fileList ) {
        print "Uncompressing $file\n";
        system("gunzip $file");
    }

# now you may need to check for errors and/or warnings out of the
processing.

        foreach $file ( @fileList ) {
        $file =~ s/\.gz//; # $file will still have .gz extension so we have
ro remove it

        eval { system("tar xvf $file") };

        if ( $@ ) {
                print "Error untarring $file: $@\n";
                next;
        }

        $file =~ s/\.tar//; # remove '.tar' from $file variable

        chdir ("/u02/perl/module/$file");

        system("perl Makefile.PL");
        system("make");
        system("make install");

        chdir("/u02/perl/modules");
}

**********************************************************************
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:29 EDT