Unlock the Power of Open Source! The " Linux New " SWAYAM Plus Course is live now and about 2,500 learners have already registered for it.

If you are a registered learner, the forum page is now active. Visit the page and get all your questions answered.

Data Structures - English

8193 visits



Outline:

Perl provides 3 types of data structures. 1. Scalar This is the basic data structure in PERL. It is as good as defining variables in Perl. e.g $variable = 9; 2. Array It is an ordered collection of data. It contains elements of any type. e.g @array = (1, 5, 6, ‘abc’, 7); 3. Hash It is an un-ordered collection of data. It is key-value pair structure. It contains elements of any type. e.g %hash = ( 'Name' => 'John', 'Department' => 'Finance' );