Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 contemplating the Monastery: (4)
As of 2016-06-30 00:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (388 votes). Check out past polls.