Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Linked list in Perl

by sundialsvc4 (Monsignor)
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
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 browsing the Monastery: (14)
As of 2014-07-25 14:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (172 votes), past polls