Patricia E Gorden-Ozgul wrote: > I need to construct a working printf statement where each field in a > given record would print at a specified position.
Hi Pat. I've been amusing myself with your problem for an hour or so, and although I don't in general approve of handing out ready-made solutions I might as well let you have this. My answer was going to be of the form 'I wouldn't start from here if I were you' which wouldn't have been too helpful. The script is attached, and I think it's fairly straightforward, but you'd better come back with any questions you have rather than me guessing what isn't clear to you. It uses symbolic references to manipulate the data inglobal hashes, so I expect I'll be in trouble with others on this list. Ah well! I've also thrown in a format as David suggested so you can see how they work. The output matches what you would have got with the printf call in your original code. If you want to see all of the data as it's pulled in, change line 36 that says 'write STDOUT' to 'dump_data' instead. Hope this helps. It kept me quiet for a while anyway! Cheers, Rob begin 666 pat.pl M=7-E('-T<FEC=#L-"FYO('-T<FEC=" G<F5F<R<[(" @(R!S=&]P(&-O;7!L M86EN=',@86)O=70@:&%R9"!R969E<F5N8V5S#0IU<V4@=V%R;FEN9W,[#0IN M;R!W87)N:6YG<R G;VYC92<[(",@;F\@=V%R;FEN9W,@:68@;VYL>2!I;F1I M<F5C="!D871A(&%C8V5S<V5S#0H-"G-U8B!D:7-P;&%Y7V1A=&$H*3L-"G-U M8B!D=6UP7V1A=&$H*3L-"@T*9F]R;6%T(%-41$]55%]43U @/0T*(" @(" @ M(" @4&%Y;65N="!4;R @(" @(" @(" @(" @(" @(" @(" @(" @(" @("!! M9&1R97-S#0H@(" @(" @(" M+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM M+2TM+2TM+2TM+2TM("TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM#0HN#0H- M"F9O<FUA="!35$1/550@/0T*(" @(" @(" @0#P\/#P\/#P\/#P\/#P\/#P\ M/#P\/#P\/#P\/#P\/#P\/#P\/#P\/"! /#P\/#P\/#P\/#P\/#P\/#P\/#P\ M/#P\/ T*>PT*(" @("1X:6YF;WM005E43WTL#0H@(" @)&%D9'(Q>TQ)3D5] M#0I]#0HN#0H-"B1\*RL[(" @(" @(",@875T;V9L=7-H#0H-"F]U<B H("5D M871A+" E861D<C$L("5A9&1R,BP@)7AI;F9O("D[#0IM>2 D:&%S:#L-"@T* M0$%21U8]("=V96YD<VAR="<[#0H-"G=H:6QE("@\/BD@>PT*(" @(&-H;VUP M.PT*(" @(&UY("@D9FEE;&0L("1V86QU92D@/2!S<&QI=" G("<L("1?+" R M.PT*#0H@(" @=6YL97-S("@D9FEE;&0I('L-"B @(" @(" @;F5X="!U;FQE M<W,@)&AA<V@[#0H@(" @(" @('=R:71E(%-41$]55#L-"B @(" @(" @=6YD M968@)&AA<V@[#0H@(" @?2!E;'-E('L-"B @(" @(" @)&9I96QD(#U^(',O M7"XO+V<[#0H@(" @(" @(&EF("@D9FEE;&0@/7X@+U9%3D1/4E],24)205)9 M+RD-"B @(" @(" @(" @(" @("![("1H87-H(#T@)V1A=&$G.R!N97AT.R!] M#0H@(" @(" @(&EF("@D9FEE;&0@/7X@+RA!1$12,7Q!1$12,GQ824Y&3RDO M*2&AA<V@@/2 D9FEE;&0@/7X@)T)%1TE.)R _("1S96-T:6]N(#H@ M)V1A=&$G.PT*(" @(" @("!](&5L<V4@>PT*(" @(" @(" @(" @)&AA<V@M M/GLD9FEE;&1](#T@)'9A;'5E.PT*(" @(" @("!]#0H@(" @?0T*?0T*#0IS M=6(@9'5M<%]D871A*"D-"GL-"B @("!F;W)E86-H(&UY("1H87-H("AQ=RAD M871A(&%D9'(Q(&%D9'(R('AI;F9O*2D@>PT*(" @(" @("!P<FEN="!U8V9I M<G-T("1H87-H+" B.EQN(CL-"B @(" @(" @=VAI;&4@*&UY("@D:RP@)'8I M(#T@96%C:" E>R1H87-H?2D@>PT*(" @(" @(" @(" @<')I;G1F("(E,39S G.B E<UQN(BP@)&LL("1V.PT*(" @(" @("!]#0H@(" @?0T*?0T* ` end -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]