APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

perl modules from shell scripts


© September 2005 (various authors)

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

Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> perl modules from shell scripts


Inexpensive and informative Apple related e-books:

Take control of Apple TV, Second Edition

Photos for Mac: A Take Control Crash Course

Take Control of the Mac Command Line with Terminal, Second Edition

Take Control of Pages

iOS 10: A Take Control Crash Course





Printer Friendly Version

Have you tried Searching this site?

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.

Contact us


Printer Friendly Version





We are standing on a whale fishing for minnows. (Joseph Campbell)




Linux posts

Troubleshooting posts


This post tagged:

Perl

SCO_OSR5

Shell



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode





SCO Unix Sales, Support, & Service

Phone:  707-SCO-UNIX (707-726-8649Toll Free: 833-SCO-UNIX (833-726-8649)
www.SCOsales.com