Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 rifling through the Monastery: (7)
As of 2014-09-21 15:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (172 votes), past polls