PERL - Print statement handdling

Legends,
I am new to PERL.
I am not able to format the output in my way.
Please help.

print "\nRecord count for $fulldate is $reccount\n";

Output coming as:

Record count for 20150106
 is 0

While I want it in single line

Record count for 20150106 is 0

Regards.

Hello sdosanjh,

Could you please try following and let us know if this helps.

chomp($fulldate);
print "\nRecord count for $fulldate is $reccount\n";

Thanks,
R. Singh

1 Like

That worked RavinderSingh13 :slight_smile: