Help for this page

Select Code to Download


  1. or download this
    [path]
    files=foo.txt,bar.txt,baz.csv
    
  2. or download this
    @files = split /\s*,\s*/, $config->{path}{files};
     # the \s* removes the optional whitespace around delimiters
    
  3. or download this
    foreach my $Section (values %$config) {
     # $Section is a hash ref containing the values of the section, not th
    +e section name!
    ...
        $Section->{$value} = [split /\s*,\s*/, $Section->{$value}];
      }
    }