$fruits = "apple,banana,grape,orange"; @fruits = split ',',$fruits; # last three elements of the array @last3 = @fruits[$#fruits-2..$#fruits]; print join(',',@last3),"\n";
In reply to Re: counting number of fileds
by pfaut
in thread counting number of fileds
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |