Mark G <[EMAIL PROTECTED]> writes:
> I am a newbie as well but this line makes no sence to me why do you have
> ($line = $line) ???
>> ($line = $line) =~ s/[Dd]estination/Dst/g;
It began life as:
$line =~ s/[Dd]estination/Dst/g;
Which is sufficient, but in the course of doggedly changing around
all kinds of stuff as errors occured, it ended up in that unecessary
condition. This is not a finished product.
> Here you dont need to quote your variables
> printf " %s %s %-28s %s\n", <$.>, $2, $4, $6;
>
> BTW why are you doing <$.> ??
Is there something wrong with printing the line number?
>> if ($opt_l){
>> @c = sprintf(my_func());
> sprintf will return a scalar, if you want an array you need to split
> @c = split "",sprintf(my_func());
Good to know (about the scalar/array)but it does nothing for the
stated problem. That is, capturing the output rather than printing to
stdout. Your split doesn't do it either.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]