From 21f1b286d2de390b4e6fb8cc36829ce2be0c94bf Mon Sep 17 00:00:00 2001 From: divyagh Date: Sun, 10 May 2020 19:11:11 +0530 Subject: [PATCH] perl minor changes --- perl/arrays/arrays.md | 2 +- perl/introduction/introduction.md | 2 +- perl/operators/operators.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/perl/arrays/arrays.md b/perl/arrays/arrays.md index ecc7abc..2c73123 100644 --- a/perl/arrays/arrays.md +++ b/perl/arrays/arrays.md @@ -1,4 +1,4 @@ -Array is a variable which gives dynamic storage for a list. SInce list is immutable, you can't change the list items directly. If you want to modify the list, you need to store it in an array variable. +Array is a variable which gives dynamic storage for a list. Since list is immutable, you can't change the list items directly. If you want to modify the list, you need to store it in an array variable. Array variable begins with `@`. diff --git a/perl/introduction/introduction.md b/perl/introduction/introduction.md index 22070cc..f7f6a31 100644 --- a/perl/introduction/introduction.md +++ b/perl/introduction/introduction.md @@ -21,7 +21,7 @@ Perl(Practical Extraction and Report Language) is especially designed for text p # Sample program ```perl -print "Hello World!!"; // to display "Hello World!!" +print "Hello World!!"; # to display "Hello World!!" ``` ### Run [here](https://onecompiler.com/perl) diff --git a/perl/operators/operators.md b/perl/operators/operators.md index 51652a2..c200950 100644 --- a/perl/operators/operators.md +++ b/perl/operators/operators.md @@ -141,7 +141,7 @@ Below are the assignment operators present in Perl. | >>= | Right shift and assign| $x >>= 2 is same as $x = $x >> 2| | &= | Bitwise and assign| $x &= 10 is same as $x = $x & 10| | ^= | Bitwise exclusive OR and assign| $x ^= 10 is same as $x = $x ^ 10| -| `|=` |Bitwise inclusive OR and assign | `$x |= 10 is same as $x = $x | 10`| +| \|= |Bitwise inclusive OR and assign | `$x |= 10 is same as $x = $x | 10`| ### Example