hakonhagland

encoding-out

May 28th, 2021 (edited)
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.16 KB | None | 0 0
  1. use strict;
  2. use warnings;
  3. use open qw(:std :encoding(utf-8));
  4. while (my $line = <>) {
  5.     chomp $line;
  6.     printf "%vX\n", $line;
  7.     print $line, "\n";
  8. }
  9.  
Add Comment
Please, Sign In to add comment