Help for this page

Select Code to Download


  1. or download this
    open my $fh1, "<:encoding(utf-8)","$tmpfile" or die "$tmpfile: $!";
    while (<$fh1>) {
    ...
        push @names, split (/\n/);
    }
    $fh1->close;
    
  2. or download this
    use strict;
    use warnings;
    ...
        push @names, $_;
    }
    close $fh1;