DelphiFAQ Home Search:

Why should we switch from perl 5.6 to perl 5.8?


commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.


Why should we switch from perl 5.6 to perl 5.8?


Prior to release 5.6.1 of Perl, bugs in the code of suidperl could introduce a security hole.

In Perl before 5.8.1 one could rather easily generate data that as hash keys would cause Perl to consume large amounts of time because internal structure of hashes would badly degenerate. In Perl 5.8.1 the hash function is randomly perturbed by a pseudorandom seed which makes generating such naughty hash keys harder.

Sorting - the quicksort algorithm used in Perls before 5.8.0 to implement the sort() function is very easy to trick into misbehaving so that it consumes a lot of time. Nothing more is required than resorting a list already sorted. Starting from Perl 5.8.0 a different sorting algorithm, mergesort, is used. Mergesort is insensitive to its input data, so it cannot be similarly fooled.

Another reason for switching to a 5.8 version of perl is its capability to handle multi-byte character strings.


2014-07-12, 23:37:08
anonymous from Malaysia  
BANK ACCOUNT 104068242480



NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: