My main programming expertise for the last 10 years has been in C++, writing
engineering applications. My question is this. Now that I'm setting up my own server Linux/Apache..I've been interested in Perl. I bought the first in series Learning Perl (O'Rielly), but it poses more questions than answers. To be specific, Perl looks to be a little like the early days of spaghetti-structure basic programming, on the surface, (at least to a rookie). I am truly wondering what in the world that I can do with Perl that I can't do with
C++. (I've read the FAQ's, and it is my understanding that the learning curve for Perl is as steep as you want to make it, or simple for simple tasks, to very complex). I'm debating whether to take the time to bother, as I'm not sure it's worth it or not. Perl, from what little I know about it seems useful, but is it useful enough for a casual (non-professional IT administrator or manager, to want to bother with. (Please consider the above comment as to C++). Also, reading various FAQ's on different sites, it is my understanding that writing CGI's without considerable experience, can make your server extremely vulnerable to
malicious attacks. The only reasonable answer that I can find, for persuing Perl, is that it being interpreted script, saves space. When your running 100 - 200 gig's of drive space, this isn't really a concern for me. Wouldn't C++ also be much quicker, as it is compiled, rather than interpreted.
Please do not misconstrue this as a commentary of C++ vs. Perl. I'm just admittedly, plain old confused. I'd be interested in taking the time to learn yet another language, if the benefits would = or > than the time and effort to learn it. From the responses that I have received, and I truly appreciate them, it seems that I haven't communicated my questions clearly. The two responses that I have received, so far, have been strictly comparisons of aspects of C++ vs. Perl Programming. This was not my intent. Please let me clarify,..how useful, and if you could, please be just a little specific, would it be to use Perl
vs. C++. I can definetly see the benifits in using it for small,
utility type "scripts", but as an overall language, would it behoove me to start probing deeply into Perl, for larger apps.
Maybe a small descriptive narrative, not source, but a..well for example: you can do this much better, and in less time, type of answer. Sorry for the poorly structered question. Maybe this will clarify my curiosity some. Again thanks to those who have answered, and to others who might.