Follow-up to 61fc83fd7dd51e9a88ac7e6264692fcf561a37f7

Compatibility fix for older versions of Perl

Signed-off-by: Haru <haru@dotalux.com>