Perl Loop

Perl Loop

The Loop Statements Different loop statements in perl… The for Loop The foreach Loop The while Loop The do-while Loop The until Loop The process...

Perl ARGV

Perl ARGV

@ARGV and %ENV The built-in array @ARGV contains the command line arguments for a Perl program. The following run of the Perl program critic.pl will have...

Perl Hash Maps

Perl Hash Maps

Perl Hash Maps/associative arrays ASSIGNING HASH VALUES hash tables consist of key/value pairs every key is followed by a value values can be assigned...

Perl Arrays

Perl Arrays

Arrays @ Array constants are specified using parenthesis ( ) and the elements are separated with commas. Perl arrays are like lists or collections in other...

Perl Operators

Perl Operators

Perl Operators In Perl, the comparison operators are divided into two classes: Comparison operators that work with numbers Comparison operators that work...

Perl List

Perl List

List A list is a sequence of scalar values enclosed in parentheses. The following is a simple example of a list: (1, 5.3, “hello”, 2) This...

Perl Scalars

Perl Scalars

Perl Scalars The most basic kind of variable in Perl is the scalar variable. Scalar variables hold both strings and numbers, and are remarkable in that...

PHP Files

PHP Files

PHP File handling PHP includes a lot of built-in functions for handling files and directories. You can read, write, delete, and get lots of information...

PHP Functions

PHP Functions

PHP Functions A function is a block of code to perform a specific task. This block of code can be executed anywhere in the program by calling it’s...

PHP Loop

PHP Loop

PHP Loop PHP loops are used to execute some code again and again for some definite number of times. There are many types of looping statements in PHP....