Mar 4, 2003 #1 FreeBASE Programmer May 3, 2002 39 US I am try to convert a $variable list split by spaces EX: 111111 321212 675675 525243 to an array... Anyone??
I am try to convert a $variable list split by spaces EX: 111111 321212 675675 525243 to an array... Anyone??
Mar 4, 2003 #2 rosenk Programmer Jan 16, 2003 403 [tt]my @arr = split(/\s+/, $variable);[/tt] That will split [tt]$variable[/tt] into it's elements delimited by one or more space-like characters (spaces, tabs) Upvote 0 Downvote
[tt]my @arr = split(/\s+/, $variable);[/tt] That will split [tt]$variable[/tt] into it's elements delimited by one or more space-like characters (spaces, tabs)