|
|
| go ahead... be a heretic | |
| PerlMonks |
Re: How do I search and output results to HTML from a CSV database file?by bjelli (Pilgrim) |
| on May 15, 2001 at 15:48 UTC ( #80504=note: print w/ replies, xml ) | Need Help?? |
|
nice soultions everyone, but sadly not for this problem. You are all parsing space-seperated data, but Sasquires data ist in fixed-width fields. If you've got just a few fixed-width fields, you might want to try substr. If you have many fields, I would recommend unpack, like so:
the template string "A8A10A2" tells unpack to look for 8 Ascii Characters, then 10 Ascii Characters, then 2 Ascii Characters. unpack is also used a lot in handling binary data (which I don't understand). I just stick to this usage. -- Brigitte 'I never met a chocolate I didnt like' Jellinek http://www.horus.com/~bjelli/ http://perlwelt.horus.at
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||