mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
This is Refactoring / code cleanup. See: * https://refactoring.com/catalog/extractMethod.html * https://en.wikipedia.org/wiki/Code_refactoring * https://www.refactoring.com/ * https://www.joelonsoftware.com/2002/01/23/rub-a-dub-dub/ Some small optimisations may have slipped in as well.
21 lines
447 B
Perl
21 lines
447 B
Perl
#! /usr/bin/env perl
|
|
#
|
|
# Short description for refactor-gamedb.pl
|
|
#
|
|
# Version 0.0.1
|
|
# Copyright (C) 2021 Shlomi Fish < https://www.shlomifish.org/ >
|
|
#
|
|
# Licensed under the terms of the MIT license.
|
|
|
|
use strict;
|
|
use warnings;
|
|
use 5.014;
|
|
use autodie;
|
|
|
|
use Path::Tiny qw/ path tempdir tempfile cwd /;
|
|
|
|
s@
|
|
\(\s*(n_\s*\("[^"]+"\))\s*,\s*
|
|
lambda\s*gi,\s*gt=(GT[A-Za-z_0-9]+)\s*:
|
|
\s*gi.si.game_type\s*==\s*gt\)
|
|
@_gen_select(title=$1, game_type=$2)@gmsx;
|