Help for this page

Select Code to Download


  1. or download this
    use Text::CSV_XS;
    open my $fh, "<", $file or die "$file: $!";
    my $csv = Text::CSV_XS->new ({ auto_diag => 1, binary => 1, sep_char =
    +> "|" });
    $csv->column_names (qw( lastname firstname country language ));
    my $info = $csv->getline_hr_all ($fh);
    
  2. or download this
    Wall|Larry|USA|English
    Walker|Johnny|Scotland|Scottish
    
  3. or download this
    [
        {   country          => 'USA',
    ...
            lastname         => 'Walker'
            }
        ]