by simula67 · 11y ago · 0 comments
Printing one line of text is one line of code. Then you can start teaching branching, loops etc.
Object-orientation is also baked in.
Oh and by the way, there is this thing called "types". It helps you catch some types of bugs early and can potentially make your programs be compiled and thus run faster in some cases. Learn about that also without switching the language.
Some functional programming concepts can also be taught.
Also it has a C-style syntax so switching to another similar language later on would also be easier.
Today, you could use almost any language for that.
Thanks, people who got stuck with Perl 5 code and now have to deal with it. May the whole concept die in a fire.
Well, you say, isn't that a problem in every language?
Perhaps. But I don't have to deal with it in every language. And every other language seems to have a type system that will let me know when something idiotic is being done, or exception handling, or "well, that pointer was null, so I'm done for the day" behavior that Perl doesn't have.
And as I've (sometimes reluctantly) given up on old relationships I'd invested a lot of time in as being not for me, or anyone for that matter, so is fucking Perl. It's not FOR ANYONE.