in reply to Wierd funky problems with split

you could also just change the record delimiter to a tab or : or = and split on \t : or = :) and avoid the extra typing :-)

Replies are listed 'Best First'.
Re^2: Wierd funky problems with split
by Ionizor (Pilgrim) on Jan 02, 2003 at 12:47 UTC

    I'm going to hazard a guess that this is an Ultimate Bulletin Board file he's trying to parse - that's certainly what it looks like. If this is the case, switching the separator is non-trivial (mostly because UBB, or at least each of the versions I've used, is a horrible, multi-file, spaghetti mess). Why they chose || as a separator I'll never know.

      lol; i'm actually writing online versions of those old quickhelp files for dos.

      http://perl.qb45.com/qboho/qb45hlp.cgi

Re: Re: Wierd funky problems with split
by toonski (Beadle) on Jan 02, 2003 at 05:13 UTC
    thanks to everyone that helped, your solutions worked fine :) i feel pretty stupid now, but i got it :)