my @line = unpack( 'A10A8A8A8A8A8', $line );
Although I believe both approaches could be broken by over-field lengths or wrapping of text - But then again, there are no doubtedly better tools for that :-)
perl -le 'print+unpack("N",pack("B32","00000000000000000000001001011000"))'
In reply to Re: parsing sloppy text from columns
by rob_au
in thread parsing sloppy text from columns
by halley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |