kthakore / pangzero

Porting Pang Zero to new SDL API for Debian Release
GNU General Public License v2.0
12 stars 4 forks source link

Deprecation warning for unescaped left brace in regex #4

Open apoleon opened 8 years ago

apoleon commented 8 years ago

Hi,

please find attached a simple patch that fixes deprecation warnings about unescaped left brace in regex which will become fatal with Perl 5.26.

https://gist.github.com/apoleon/5d0b64861b69ced6e7153ef4fc19965a

eserte commented 8 years ago

With perl 5.25.x this is now really a fatal error:

Output from './Build test':

Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/Games::PangZero::Players\[0]->{ <-- HERE keys}->\[0] = (.+?)$/ at /tmpfs/.cpan-build-cpansand/2016083106/Games-PangZero-v1.4.1-0/blib/lib/Games/PangZero/Config.pm line 107.
t/00-run.t .. 
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run