I
I
Ilya bow2016-10-16 20:34:47
Perl
Ilya bow, 2016-10-16 20:34:47

Can the C language be replaced by perl? Is there a big difference between them?

Situevina is like that. I have a primary education. I work as an enikey worker. I plan to develop in the direction of system administration. Went to the top. They study C.
As I understand it is not very necessary for administration. Perl is better in my opinion.
He asked if it was possible to learn another language. they said no problem.
The question is whether I can unlearn at the tower by studying perl?
It's just that perl is like a scripting language and I'm afraid it will not be able to complete the tasks that I will be asked to study.
Am I right in thinking this is the case? What do you advise?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
E
evgeniy_lm, 2016-10-16
@evgeniy_lm

In programming, language doesn't matter. Language is a tool, as you correctly noted to admin C, it is not very useful. But here's the thing, knowing how to write programs in one language, you can write in any other without any problems. in this particular case, it is better for you to study C for two reasons: firstly, it is customary in your university, do not create unnecessary problems for yourself; secondly, C has incommensurably more opportunities than Perl, and you don’t know where and with whom you will work later.
If you want Perl, it's not hard to figure it out on your own in a couple of weeks. Just compare with C and you will know how they differ and what they have in common

A
abcd0x00, 2016-10-17
@abcd0x00

Can the C language be replaced by perl?

Both need to be known. It happens that the main program is written in C, and the control script for this program is written in an interpreted language (Perl or Python).
Why do universities study C - because it contains everything you need and does not contain anything extra (you can concentrate on the task).
Have you run any Perl script? Did you know that it was executed in an interpreter that is written in C? A lot of things are written in C that you don’t even think about. Even this site runs through nginx and nginx is written in C.
If you choose one Perl, you won't be able to understand C sources. And there are more C sources with some examples (tree rotation, for example) than Perl sources. So you will need to learn something, but you will not be able to, because there will be no Perl source anywhere.

C
CityCat4, 2016-10-16
@CityCat4

Well, perl is not exactly a scripting language - it's a precompiled type language. The Perl interpreter converts the text given to it into some bytecode, which it executes. This happens invisibly to the user. A C program is inferior and may well be faster than the corresponding Perl program, but the speed of developing in compiled type (C) and precompiled type (Perl) languages ​​is simply incomparable! In C, you have to keep in mind a lot of things that you can't do, because otherwise SIGSEGV :) Perl protects the fool from the computer (and vice versa), so let's say it's impossible to go beyond the boundaries of the array :) The price for this is less program speed. As for tasks - show me a task that can't be done in Perl :)

R
Renat__S, 2016-11-30
@Renat__S

Who cares, the problem was that a raid was created in the BIOS, after removing it everything worked.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question