Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    
    our @arr = <ABC DEF GHI>;
    
  2. or download this
    1.    my @many = glob "{apple,tomato,cherry}={green,yellow,red}";
    
  3. or download this
    use strict;
    use warnings;
    ...
              'def',
              'ghi'
            ];
    
  4. or download this
    use Data::Dumper;
    use File::Glob ();
    ...
    print Dumper(\@arr3);
    glob_to_array.pl syntax OK