[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Interpreting a columnar text file.



>>>>> "Chaim" == Chaim Frenkel <chaimf@pobox.com> writes:

Chaim> That also isn't the best solution, Randal worked around the problem by
Chaim> padding the input. But it may be easier to simply change the last entry
Chaim> to A* rather than padding.

You run into a problem if the next-to-last item is also not present though.
unpack() gets mad when told to 'x' something that isn't there. :)


-- 
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@teleport.com)
Web: <A HREF="http://www.stonehenge.com/merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me

==== Want to unsubscribe from Fun With Perl?
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org