Wednesday, March 20, 2019
Perl: A Popular Scripting Language :: Computers
Perl A Popular Scripting LanguagePerl was created nether strange circumstances, it was never intended to be a widely apply public language but the features it provided ca apply opusy programmers to crave for more. Larry Wall ab initio created Perl to produce reports from a Usenet- moderns-like hierarchy of files for a bug-reporting system. 1 Apparentlyawk and sed could non handle the task. Larry decided to fix this problem with a C finish now known as Perl, Practical Extraction and Report Language. Perl grew at the same rate as the UNIX operating system. It became portable as new features were added. Perl now has extensive documentation available in different man pages. Perl is growing now just as every widely used programming language.Perl is known for its management of data. It brush aside manipulate files and directories and manage tasks. It bottom easily analyze results from separate applications including sorting large files that would take a human a long time. Perl is generally used for its scripting abilities. String habit is much smoother using Perl than using imperious languages like coffee berry and C. The data representation of numeric data in Perl is a elfin different than otherlanguages. All numeric data is a prototype precision floating point value in Perl. For this reason it would not be a good idea to solve complex numeric problems with Perl because it would be much slower than using a regular imperative language. String values are sequences of characters as in most other languages. The convention for scalar variable identifiers is a dollar sign followed by a character followed by a sequence of underscores and alphanumeric values. scalar variables feces contain a single value representing a number, string, or reference. For sheath $a = hello is just as valid as $b1 = 3.4. Perl has numerous built in functions and it allows for user defined exchangeprograms. Subprograms are an example of data abstraction. To def ine a subprogram you use the convention if sub subname statements . To pass parameters you call subname(arg1, arg2). To access the parameters is a little different, you must tucker out the values from the temporary _ array. The _ array is private to the subprogram. Subprograms can return variables and can have their own private variables. Perl can have input from files and keyboards and can have output to files and screens.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment