it would help if you printed your actual script, but:
string $sel[] = ls -sl
;
print $sel;
should print everything you have selected.
If that doesn't work, can you give a little more info on what you have selected and the actual script you are using.