Created
December 2, 2015 23:53
-
-
Save zoffixznet/55af69fe0f709aa60ba5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use 5.022; | |
use Mojo::Util qw/slurp decode encode/; | |
my $line = 1; | |
my $code = join "\n", map sprintf('%2d %s', $line++, $_), | |
split /\n/, decode 'utf8', slurp 'data.html'; | |
say encode 'utf8', $code; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment