Help for this page

Select Code to Download


  1. or download this
    sub glob_array {
      my (%opt) = @_;
    ...
      
      return \@array;
    }
    
  2. or download this
    my @colors     = qw(red green blue);
    my @directions = qw(north south east west);
    my @numbers    = (1..3);
    
    my $array = glob_array( 'arrays' => [\@colors, \@directions, \@numbers
    +], 'joiner' => ' ', 'space holder' => '__' );
    
  3. or download this
    $VAR1 = [
              'red north 1',
    ...
              'blue west 2',
              'blue west 3'
            ];