Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: I want you to convince me to learn Perl

by Jenda (Abbot)
on Sep 25, 2013 at 15:04 UTC ( #1055700=note: print w/replies, xml ) Need Help??


in reply to Re: I want you to convince me to learn Perl
in thread I want you to convince me to learn Perl

Well ... the speed ... it's both right and wrong. If you translate some code statement-for-statement from C to Perl, then Perl will lose hands down. For a large group of tasks a well written Perl script will beat anything you could write in C in reasonable time to pulp. The built-ins of Perl had been hand-optimized for years so if you can implement the task by a few calls to those built-ins, your program will finish sooner than if you attempt to reimplement them in your own code. In most cases it simply doesn't matter though.

Jenda
Enoch was right!
Enjoy the last years of Rome.

  • Comment on Re^2: I want you to convince me to learn Perl

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1055700]
help
Chatterbox?
[james28909]: but you could put it all in one sub and return the same data type that was inputted. i could write a small example maybe
[Lady_Aleena]: Their uses are also vastly different.
[Lady_Aleena]: The first two make hashes and arrays from a file, the third returns data from a pre-existing hash.
[Lady_Aleena]: Well, HoH and AoH respectively.
[Lady_Aleena]: But if you want to play, play. I don't mind. 8)

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2017-05-24 05:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?