Help for this page

Select Code to Download


  1. or download this
    @a = 0..4;             # a simple 5 element array
    print @a[-2..1], "\n"; # 3 4 0 1 
    print @a[-5..4], "\n"; # 0 1 2 3 4 0 1 2 3 4
    
  2. or download this
    @j=@a=@p=@h= qw/ J u s t
                     A n o t h e r
    ...
        )[-5..2]            # ' ','H','a','c','k','e','r','.'
      )
    );