Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
      Which do you think will fit better for a sys admin kind of suff?

Every year since 1973 I've revisited what languages I want to learn or stay current in and it all boils down to how much time you have and what tools you need to get done what you want to get done.

To answer your question directly I've used a whole lot more Perl for SysAdmin kind of work than I have C or C++. That's not to say I haven't written XS code for a Perl module before and therefore used C. (Actually: one module I wrote for a financial firm I worked for was a hack of embedded SQL (ESQL) grafted into a Perl module. ESQL->C->XS was the path.)

I would shudder to think how much more difficult it would have been for me to automate backups back in 1990 using just C or C++ to get the job done, not to mention all of the log scraping scripts I've written, user account generation scripts and on and on. These are tasks that Perl is much more suited to. On the other hand I'd hate to write a compiler in Perl. Not that it couldn't be done, but being able to use lex to generate C code for a parser and yacc to create the finite state machine in C would make much shorter work of the task than having to do all that by hand in Perl.

I've said it in other posts on PM and I'll say it again: "right tool for the job."


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

In reply to Re: C or C++ to go with Perl. by blue_cowdawg
in thread C or C++ to go with Perl. by Anonymous Monk

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

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

    How do I use this? | Other CB clients
    Other Users?
    Others lurking in the Monastery: (6)
    As of 2014-12-27 03:27 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      Is guessing a good strategy for surviving in the IT business?





      Results (176 votes), past polls