Output the last element in the array : Array Output « Array « Perl
- Perl
- Array
- Array Output
Output the last element in the array
@array = qw( zero one two three four five six seven eight nine );
print "\@array[ $#array ] is $array[ $#array ].\n\n";
Related examples in the same category