This is probably a really dumb question, but I'm new at stripping lines for data.
I have editted a script so that it stores items like this
1000=Nick|request and stuff|status|date requested
To break it down
1000 == request id
Nick == users nick
request == request of the user, undertimned size.
status == Status of the request
date requested == obvious
Now i've tried using the [split $whatever "|"], but its doesn't do the job right without a ton of code. Is there an easier way to getting those 5 variables from that line without making 10 lines of code to do it?
set text [split "1000=Nick|request and stuff|status|date requested" |]
set request [lindex $text 1]
set status [lindex $text 2]
set date [lindex $text 3]
set reqid [lindex [split [lindex $text 0] =] 0]
set nick [lindex [split [lindex $text 0] =] 1]