Use stash() instead of my %serverSide hash

This commit is contained in:
swaggboi 2021-03-09 21:31:15 -05:00
parent a2aeaa38c6
commit 5f1d45bbb7

View File

@ -20,13 +20,12 @@ get '/' => sub {
my $count = format_number time; # Grab epoch and add commas
my $fortune = `/usr/games/fortune` || `fortune` || "huh??\n";
# Gather all our server-side stuff
my %serverSide = (
$c->stash(
count => $count,
fortune => $fortune
);
$c->render(%serverSide);
$c->render();
} => 'index';
# Deprecation of IE page
@ -48,7 +47,7 @@ get '/ula6' => sub {
# Check the MAC
$mac = ($c->param('macaddr')) ? lc $c->param('macaddr') : '';
if ($mac =~ /$RE{net}{MAC}/) {
if ($mac =~ /$RE{'net'}{'MAC'}/) {
# Local vars for this bit
my (
$binfield,