Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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!)

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2018-06-23 10:35 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (125 votes). Check out past polls.