Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Linked list in Perl

by sundialsvc4 (Abbot)
on Sep 28, 2012 at 17:12 UTC ( #996256=note: print w/ replies, xml ) Need Help??

in reply to Linked list in Perl

A linked-list is a specific implementation of “a list,” but Perl already has well-defined List and Array data-types.   You don’t need to bother to create your own ... unless you are dealing with a very unusual edge-case, for which there will undoubtedly be an application-specific module to be found at

If you find yourself “dumpster diving” to details at that level, it almost invariably means that you are on the wrong track.   (Heck, that’s also true with C++, which has plenty of “extensible container” classes available off-the-shelf.)   It means that you are getting lost in one path of “how can I do this” and losing sight of “what am I trying to achieve?”   (A very easy thing to do!)

Comment on Re: Linked list in Perl
Replies are listed 'Best First'.
Re^2: Linked list in Perl
by Anonymous Monk on Sep 29, 2012 at 09:36 UTC
    What kind of 'well-defined' list data types are you referring to? Can you give an example of how to use them?

    On cpan, what modules would you suggest using to solve the given problem?

    I find the lacking of concrete information in your post disturbing ...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2015-11-26 01:25 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (695 votes), past polls