Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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 http://search.cpan.org.

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (16)
As of 2015-07-31 14:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (278 votes), past polls