Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    list: ()
    first ref: (1 2 3 a b)
    final list: (4 5 6)
    
  2. or download this
    use strict;
    use warnings;
    ...
    list: (1 2 3 a b)
    first ref: (1 2 3 a b 4 5 6)
    last list: (1 2 3 a b 4 5 6)
    
  3. or download this
    use strict;
    use warnings;
    ...
    my $ref2 = foo(4..6);
    print "first ref: (@$ref1)\n";
    print "final list: (@$ref2)\n";