I thought I had done this before, but I guess not. I build a formt line for printf like:
But I want to insert a carriage return after say %-4s( I have a nubmer of fields and depending on the size, it is not a constant after column 2, but could be column 3 or 23.
I have tried:
q[%-3s%-4s] . qq[\\n] . q[%5s%6s]
But no matter what I do, it does not generate the carriage return. Shows up in the line. I know I am missing some very basic point, but has escaped me.
Here is the sample script I was playing with:
my $MyLine1 = q[%2d %5s %6s];
my $MyLine2 = q[%2d %5s \n%6s];
David R. Wagner
Senior Programmer Analyst
FedEx Freight Systems