Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Data structures in Perl. A C programmer's perspective.

by code-ninja (Scribe)
on Sep 06, 2013 at 10:48 UTC ( #1052691=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    struct node {
        int data;
    ...
        }
        return start;
    }
    
  2. or download this
    package doublyLinkedList;
    
    ...
        }
        return;
    }
    
  3. or download this
    void pop(start)
        struct node *start;
    ...
        free(temp);
        return; # or maybe we can return the element popped before freeing
    + temp or whatever.
    }
    
  4. or download this
    sub pop {
        my $self = shift;
    ...
        $self->{start}{prev} = $ret->{next} = undef;
        return $ret->{element};
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://1052691]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2015-07-04 09:40 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 (59 votes), past polls