in reply to Re: Re: Sort this data
in thread Sort this data

What if there is a blank line at the END of the list? You might want to sniff for that and pop off blank lines first.

Also, what if fields are allowed to be null? If so, you HAVE to read from the front...

--
$you = new YOU;
honk() if $you->love(perl)

Replies are listed 'Best First'.
Re: Re: Re: Re: Sort this data
by japhy (Canon) on Nov 20, 2000 at 01:52 UTC
    Yes, and we've just seen that reading from the front is not all that slow an operation. Sorry, I didn't understand how the array was implemented internally. Now that I do, I see that splice()ing at the front of an array is a damn nice operation, and makes unshift()ing later less of a headache.

    japhy -- Perl and Regex Hacker