perl modules from shell scripts
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" <email@example.com> Subject: Re: Using perl module functions in shell scripts Date: Wed, 12 Oct 2005 22:39:30 +0200 Message-ID: <firstname.lastname@example.org> References: <email@example.com>
<firstname.lastname@example.org> Neelay <email@example.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
Increase ad revenue 50-250% with Ezoic