Help for this page

Select Code to Download


  1. or download this
    my @temp = ('bob', ['carol', 'ted'], 'alice', ['felicity', 'austin'], 
    +'arturo');
    my @rows;
    ...
    
    push @rows, [ @temp[0..2] ];
    # @rows is now (['bob', ['carol', 'ted'], 'alice'])
    
  2. or download this
    my @temp = \('foo', 'bar');
    # @temp now (['foo'], ['bar']), not (['foo', 'bar'])