Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Re: Sort this data

by extremely (Priest)
on Nov 20, 2000 at 01:47 UTC ( [id://42440]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://42440]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-03-29 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found