Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

(The following should be prefixed with a hearty "IMHO"; this is one of those areas where you'll need to get your fingers burned a couple times to internalize when you personally are on what side of the Perl/not-Perl divide . . .)

Until you find a box still running Redhat 7.2 that's got an unpatched 5.005 that a third of the modules (or more) you need don't run on . . .

So long as you're specifically targeting bash qua bash and not "generic Bourne shell" you're not going to have enormous portability issues. With either you're probably more likely to run into cases (if you don't have a specific environment under your direct control) where just getting your tool onto the boxen in question is than exotic portability concerns. Picking the implementation language that makes it easiest to get the problem solved should be given more weight over worrying if it'll run out of the box on a late-80s era 3b2 SysV box.

(Having said that, Perl does have an advantage (to just name one, of course :) in that more is built-in to the language and you are more decoupled from environmental vagaries (e.g. does this box's stuff take strict POSIX options or GNU-y variants). But if all you need is to run 3-4 commands and glue together their inputs and outputs some form of shell might be the quicker answer; worst case you can always rewrite . . . :)

Update: Couple minor additions and tweakings of wordings.

Some links that may be of (possibly tangental) interest:

The cake is a lie.
The cake is a lie.
The cake is a lie.


In reply to Re^2: bash vs perl by Fletch
in thread bash vs perl by leocharre

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-24 04:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found