Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Perl: add value to array at specified index

#!/usr/bin/perl
# define an array
@tab = ("January", "March", "May");
# print array values
print "@tab";
# set value at index 1
$tab[1]="February";
#

Perl: list assignments

# defining a list
@tab = qw( January February March April May June );
print "@tab";
 # Assigning the list
( $10month , $12month ) = ( "October", "Dec