Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

list list---- ahhh im lost in my list!!! 1

Status
Not open for further replies.

VspecGTR3

Technical User
Feb 3, 2003
62
US
im taking the user input and im spliting it all into elements but all i need is the last element in the list how do i do that?
 
$lastElement = (split /pattern/,$scalar)[-1]; ----------------------------------------------------------------------------------
...but I'm just a C man trying to see the light
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top