in reply to Re: File write problem
in thread File write problem

Hello, it was whitespace characters causing everything after the Qty figure to appear on the second line.
Don't know why the code did not work earlier. Fixed the second line prob using this
open PL, 'pvclength.txt' or die "Cant open file"; $pvc_l=<PL>; $pvc_l =~ s/^\s+//; $pvc_l =~ s/\s+$//;
Also for the alignment will look up on sprintf. Thank you everyone for your comments and sorry for the delay in
replying.

perl_seeker