in reply to basic question on split
Off topic question. You use CGI then print headers manually?
Semi-on-topic question. Why not use the $restLength variable in the for loop so you're not calling the length function (or the scalar function once you correct your code as simonm pointed out) over and over again?
Another off topic observation. print "@rest[$i]" probably isn't what you want. That makes a slice. You most likely want to get into the habit of using code more like print "$rest[$i]"
|
|---|