Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    use Data::Dumper;
    ...
    print "\n$len \n";
    
    print Dumper $L;
    
  2. or download this
    ABCD
    4
    ...
              'value' => 'A'
            };
    
  3. or download this
    my $L = {
        value => "A", next => {
    ...
        }
    };
    
  4. or download this
    my $L;
    for ( reverse qw / A B C D E F G/) {
        my $pt = { value => $_, next => $L };
        $L = $pt;
    }
    
  5. or download this
    $ perl linked_list.pl
    ABCDEFG
    ...
                        },
              'value' => 'A'
            };