Skip to content

Instantly share code, notes, and snippets.

@itsuki-hayashi
Created December 30, 2023 08:03
Show Gist options
  • Save itsuki-hayashi/18b5b2cc39eb685c4c1f530f306b57f9 to your computer and use it in GitHub Desktop.
Save itsuki-hayashi/18b5b2cc39eb685c4c1f530f306b57f9 to your computer and use it in GitHub Desktop.
Modern Perl header
#!/usr/bin/env perl
use strict;
use warnings;
use 5.038;
use utf8;
use English;
use FindBin;
use lib "$FindBin::Bin/local/lib/perl5";
if ($OSNAME eq 'MSWin32') {
Win32::SetConsoleCP(65001);
Win32::SetConsoleOutputCP(65001);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment