Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Keep It Simple, Stupid
 
PerlMonks  

Re: C or C++ to go with Perl.

by blue_cowdawg (Prior)
on Jan 18, 2013 at 14:07 UTC ( #1014062=note: print w/ replies, xml ) Need Help??


in reply to C or C++ to go with Perl.

      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


Comment on Re: C or C++ to go with Perl.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014062]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (13)
As of 2014-04-23 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (554 votes), past polls