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

Perl: list assignments

Perl: list assignments

# defining a list
@tab = qw( January February March April May June );
print "@tab";
 # Assigning the list
( $10month , $12month ) = ( "October", "December" );
print "10month = $10month
12month<span id="more-39"></span> = $12month";
# edit the array values
@tab[ 1,  4 ] = qw( Janvier Avril);
print "@tab";

Users who found this page were searching for:

  • Perl list assignment

No comments yet.

Leave a Comment