Professional Documents
Culture Documents
CCS21103
ASSIGNMENT 1
Received Date :
Submission Date:
Weightage : 20 %
Semester : Sep 2020
Instruction to students:
Student declaration:
I declare that:
This assignment is my own work
I understand what is meant by plagiarism
My lecturer has the right to deduct my marks in the case of:
- Late submission
Any plagiarism found in my assignment.
Total
MARKS:
Table of Contents
Introduction..........................................................................................................................................3
History..................................................................................................................................................4
Readability...........................................................................................................................................6
Writability.............................................................................................................................................7
Cost......................................................................................................................................................7
Availability............................................................................................................................................7
Extendibility..........................................................................................................................................7
Bibliography.........................................................................................................................................8
Introduction
For this assignment, we have to choose a programming language and develop its functions
and features. We’ve chosen Perl Programming for this respective assignment.
History
Perl Programming
Perl is brief for “Practical Extraction and Report Language,” though it’s also been referred to
as a “Pathologically Eclectic Rubbish Lister.” The programming language Perl has been
there for an extended period. Originally its creator, Larry Wall, had chosen to call it Pearl as
he felt that it was a short and memorable word with positive associations.[ CITATION His \l
1033 ] However, only before the language was due to be released, he discovered that there
was already an existing programming language named “PEARL.” At this time, he changed
the spelling, so he released it as Perl. Wall began his work on developing Perl before 1987,
with the preliminary version was finally released at the end of that year.
Perl has a few nicknames; it is called “the Swiss Army chainsaw of programming
languages”(Sheppard) and “the duct tape that holds the Internet together.”It gained these
nicknames because of its high degree of adaptability and its rise in popularity as the web
was being developed; because most of what was being done on the early part of the web
happened with text, and because Perl was designed, at least in part, to handle text
processing, it was better suited than the available alternative languages at the time.
[ CITATION Per \l 1033 ]
Readability
Perl has a reputation for poor readability due to its complex level of English. Perl claimed
using sigils makes “the nouns stand out from the verbs.” Every line is deeply expressive,
both in its content and its rhythm.[ CITATION Dav17 \l 1033 ] The user probably needs a
dictionary to look up some words that express precisely what the author intended while not
perhaps in everyday usage. It’s still English, but the user has to work a little harder at
reading it because it’s beautiful powerful English. Complex problems often require complex
language to describe their solutions. There is always more than one way to perform a task,
and this is detrimental to readability. The coding style also adds up to the code’s readability
as every programmer has their way of implementing code.[ CITATION Vin08 \l 1033 ]
Perl’s typical block structure allows for relatively simplistic readability with good programming
habits, barring perhaps the special characters assigned to variable types for those previously
unfamiliar with the language.[ CITATION Per \l 1033 ]
Writability
The key to writing code that is both readable and expressive is to build a bridge with your
comments that help the unfamiliar reader find[ CITATION Vin08 \l 1033 ] their way through the
complex and obscure portions. For the typical user, Perl’s writability is nearly on par with
languages like C++ or Java. Again, with the potential exception of how variable type
declaration is handled, much of what can potentially damage Perl’s readability can
significantly enhance its’ writability.
Cost
Perl’s initial cost is zero; the full source code and documentation are free to copy, compile,
print, and give away. Any programs written in Perl incur no royalties or restrictions on
distribution. Perl is released under the terms of the “Artistic” GNU General Public License,
meaning any modifications must be flagged and the original modules distributed along with
the modified versions.[ CITATION Per \l 1033 ]
Availability
Perl is available for most operating systems, particularly Unix and its variants, meaning
hardware costs are typically kept to a minimum. Perl has been ported to the Amiga, the Atari
ST, the Macintosh family, VMS, OS/2, even MS/DOS, and Windows. [ CITATION Per \l 1033 ]
Extendibility
This is the idea that by using sigils, new keywords can be added to the language and not
break old code, as they won’t contain variables whose names clash with keywords. While
this is undoubtedly true, I have a few problems with this.
This is the idea that by using sigils, new keywords are added to the language and not break
previous code, as they won’t contain variables whose names clash with keywords. First, if
we believe the Programming Perl claim that variables are nouns and keywords are verbs,
they should rarely clash anyway. Second, Perl permits subroutines to be used without sigils.
These are indeed way more possible to clash with keywords, both being “verbs,” so to
speak. Third, Perl allows “constants” to be declared without sigils at all. So if sigils reduce
the danger of new keywords breaking old code, they don’t handle the most common cases.
[ CITATION Dav17 \l 1033 ]
Bibliography
Veselosky, V. (2008, 07 07). Perl Readability Expressiveness and Concision. Retrieved from Webquills:
https://www.webquills.net/web-development/perl/perl-readability-
expressivenes.html#perl-readability-expressiveness-and-concision