Read text file and convert to Matrix / array of array in Perl

Posted By: Achchuthan Yogarajah - May 17, 2014
This article about How to crate a  multidimensional array ? and how to read text file and convert to matrix .First we consider an array of array , An array of arrays is a two-dimensional structure that consists in an array whose elements are references to other arrays.Each element of the array (let's call them sub arrays) is also an array, so we use anonymous arrays to define each sub array.

Find the sum of a list of numbers in Perl

Posted By: Achchuthan Yogarajah - May 08, 2014

In this article , simply create a array (@list) and assign elements into the array(@list).First find the sum of the list and second code is to find sum of odd numbers and even numbers separately of the array(@list) of numbers.

Copyright © 2016 Believe in Yourself - Achchuthan Yogarajah ACHCHUTHAN.ORG. Designed by Templateism .