Mark G <[EMAIL PROTECTED]> writes: [....]
>> Is there something wrong with printing the line number? > > Nothing @all. you dont need to do <$.>, $. is fine by it self so can scrap > that to > printf " %s %s %-28s %s\n", $., $2, $4, $6; I wanted the brackets in the output. [...] > . . . . . . . . . . . . . . . . . . . . . . . . . . . . In either > case that wont help { or atleast will make it a mess } your problem. I think > the simplest thing to do is to replace your printf with sprintf in your > function, like this: > > sub my_func{ > ... > return sprintf " %s %s %-28s %s\n", $., $2, $4, $6; > } > > and then you can assign to array: > > @c = split "", my_func(); Good. Charles says as much too. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]