i was trying to split a string and find the last word
i can have string like
./t2 OR
/alex/samsung/t2
any thing. i want to split the string at / and use last name, t2 here. this i can do by having lenght of array and find last element. is there any other simple way in perl