Hi,
You are useing a prototype for your function that accepts
no arguments: sub xls () {}
So you cannot pass any arguments to this function.
If you drop the parenthesis it should work (at least from a syntactic
point of view). To get the sorted output see the answer by Velaki
si_lence