From 9c9fe73d548e03fab7e21e7e7b9ab58699925c32 Mon Sep 17 00:00:00 2001 From: peteyboy Date: Wed, 23 Feb 2022 21:29:03 +0000 Subject: [PATCH] After adding share functionality just now, cleaned up some comments and updated README with new packages needed. Changes to be committed: modified: README.md modified: wordle-life.cgi --- README.md | 8 +++++--- wordle-life.cgi | 4 +--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index aa90a9e..11c6b33 100644 --- a/README.md +++ b/README.md @@ -15,11 +15,13 @@ Here's what I used to [install the perl module I needed with cpanm](https://stac then for each package, you can run *cpanminus*: - $>cpanm CGI::Tiny + $> cpanm CGI::Tiny ... - $>cpanm Mojo::Template + $> cpanm Mojo::Template ... - $>cpnam Mojo::Loader + $> cpnam Mojo::Loader + ... + $> cpanm Readonly ... Also, the Life Viewer is a super-cool javascript plugin app from the people at [Conwaylife.com](https://conwaylife.com) that is expected to be in the same directory as the CGI file. It is available with instructions [here](https://conwaylife.com/wiki/Tutorials/LifeViewer_JavaScript_plug-in) diff --git a/wordle-life.cgi b/wordle-life.cgi index c3721a7..2fe9223 100755 --- a/wordle-life.cgi +++ b/wordle-life.cgi @@ -12,8 +12,6 @@ use Mojo::Loader 'data_section'; #use Routes::Tiny; #don't even need use Readonly; use List::Util qw(first); -#use HTML::Entities; -#use URL::Encode; #=== # MAKE SURE ORIGIN PAGE MATCHES FILENAME (especially if you are testing changes)! @@ -86,7 +84,7 @@ use List::Util qw(first); exit; } - #die "Invalid wordle parameter" unless length $wordle; + die "Invalid wordle parameter" unless length $wordle; #Load template from DATA section and output #my $mt = Mojo::Template->new(auto_escape => 1, vars => 1);