Help for this page

Select Code to Download


  1. or download this
    binmode STDOUT, ":utf8";
    binmode STDERR, ":utf8";
    
  2. or download this
    use Encode;
    
  3. or download this
    opendir( my $dir, "/usr/local/bin" ) or die "Can't read /usr/local/bin
    +: $!\n";
    while ( my $fname = decode( "utf8", readdir( $dir ))) {
        print $fname, "\n";
    }
    
  4. or download this
    #!/usr/bin/perl
    
    ...
    while ( <$find> ) {
        print;
    }