(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



Best of the Newsgroups: perl modules from shell scripts

Main Index

I liked the imagery of Peter's answer. The real answer is that you need to build a perl program around the module you want to use and design an interface for your shell script to do what it wants to do. Seems pointless to me: if you went to all that effort, why use the shell at all? But I guess if you had a big chunk of existing code..

From: "Peter T. Breuer" <ptb@oboe.it.uc3m.es>
Subject: Re: Using perl module functions in shell scripts
Date: Wed, 12 Oct 2005 22:39:30 +0200
Message-ID: <2t8023-m93.ln1@news.it.uc3m.es> 
References: <1129145437.484269.276920@f14g2000cwb.googlegroups.com> <s87023-jju.ln1@news.it.uc3m.es> <1129148835.946965.265090@g47g2000cwa.googlegroups.com> 

Neelay <neelay1@gmail.com> wrote:
> How can I import the Perl module into the shell script?

This question betrays a fundamental incomprehension of

    1) progamming language theory
    2) interpretation
    3) compilation
    5) linking

and probably a good many more things besides.

The answer is "the same way as you can fill your elephant up with
petrol". Find the petrol cap first, then insert nozzle and pull
trigger. Stand well back.

Peter
 



Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



/Bofcusm/2622.html copyright 1997-2004 (various authors) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.



More:
       - OSR5
       - Bofcusm


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress