in reply to Re: RFC Using PERL HEREDOC script within bash
in thread RFC Using PERL HEREDOC script within bash

Just illustrating and example of how this might be done when a bash or ksh script needs a little more scripting muscle. It merely illustrates a method for leveraging PERL within bash or shell of choice, when OS utilities fall a little short. No one tool can do it all, though PERL comes very close, but, when it can't... the illustration offers by example an enhancement to your existing tools out of the box.

roboticus, Sorry we don't share the same out-of-box thinking. I have seen other requests for this type of method. Merely fulfilling a need to know, whether you agree or not.

  • Comment on Re^2: RFC Using PERL HEREDOC script within bash

Replies are listed 'Best First'.
Re^3: RFC Using PERL HEREDOC script within bash
by Anonymous Monk on Aug 27, 2014 at 15:47 UTC
    No one tool can do it all

    Well, Perl can! :-) Especially with the appropriate modules, plus it's pretty portable. (With what kind of tasks did you have portability problems with Perl?)

    You did post on a Perl website after all, so of course everyone says, why not do it all in Perl? ;-)

      You are exactly right! Should have known better than to put PERL in a second-class context. Ouch! It wasn't my intent to make defacto statement, merely present an example to others asking how. I am a big fan of PERL and use it as primary scripting choice. Just hope the examples are taken as just that... examples. Though I sure it will touch a nerve somewhere.