DataStructure::LinkedList::Node
A single node (element) in a DataStructure::LinkedList.
You can’t build a node directly. Instead you can call one of the accessors of a DataStructure::LinkedList or some of the methods below.
Note that a DataStructure::LinkedList::Node does not hold a reference on its parent list. So a node becomes invalid when the last reference to its list is deleted as the list itself will be destroyed. But you should also not depend on this behavior as it might be fixed in the future.
All the functions below are class methods that should be called on a DataStructure::LinkedList::Node object.
Returns the value held by this node.
Returns the next DataStructure::DoubleList::Node in this list or undef if the current object is the last node in its list.
The current node can still be used after that call.
Inserts a new node in the list after the current one, with the given value and returns that new node.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'can’t'. Assuming UTF-8
To install DataStructure, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DataStructure
CPAN shell
perl -MCPAN -e shell install DataStructure
For more information on module installation, please visit the detailed CPAN module installation guide.