{<br> string $compSel[]= `ls -sl -fl`;<br> string $obj[]= `ls -hilite -type "transform"`;<br> string $storeEdgeLoop[];<br> int $numTokens;<br> string $buffer[];<br> int $id[];<br> for($comp in $compSel){<br> $numTokens = `tokenize $comp ".[]" $buffer`;<br> //print ($buffer[2] + "\n");<br> $id[size($id)] = int($buffer[2]);<br> print $id[size($id)];<br> }<br>}<br>
Replies
int $numTokens;
string $buffer[];
int $x;
int $id[];
for($comp in $compSel)
{
$numTokens = `tokenize $comp "[:]" $buffer`;
//print ($buffer[1] + "\n");
$id[$x] = int($buffer[1]);
//print ($id[$x] + "\n");
$x++;
}