mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-26 20:55:19 +03:00
110 lines
2.2 KiB
Diff
110 lines
2.2 KiB
Diff
--- a/Build.PL
|
|
+++ b/Build.PL
|
|
@@ -6,9 +6,8 @@
|
|
my $build = Module::Build->new(
|
|
module_name => 'Parser::MGC',
|
|
requires => {
|
|
- 'perl' => '5.014',
|
|
+ 'perl' => '5.036',
|
|
|
|
- 'Feature::Compat::Try' => '0',
|
|
'Scalar::Util' => 0,
|
|
},
|
|
test_requires => {
|
|
--- a/META.json
|
|
+++ b/META.json
|
|
@@ -21,9 +21,8 @@
|
|
},
|
|
"runtime" : {
|
|
"requires" : {
|
|
- "Feature::Compat::Try" : "0",
|
|
"Scalar::Util" : "0",
|
|
- "perl" : "5.014"
|
|
+ "perl" : "5.036"
|
|
}
|
|
},
|
|
"test" : {
|
|
--- a/META.yml
|
|
+++ b/META.yml
|
|
@@ -22,9 +22,8 @@
|
|
Parser::MGC::Examples::EvaluateExpression:
|
|
file: lib/Parser/MGC/Examples/EvaluateExpression.pm
|
|
requires:
|
|
- Feature::Compat::Try: '0'
|
|
Scalar::Util: '0'
|
|
- perl: '5.014'
|
|
+ perl: '5.036'
|
|
resources:
|
|
license: http://dev.perl.org/licenses/
|
|
version: '0.21'
|
|
--- a/lib/Parser/MGC.pm
|
|
+++ b/lib/Parser/MGC.pm
|
|
@@ -5,11 +5,11 @@
|
|
|
|
package Parser::MGC 0.21;
|
|
|
|
-use v5.14;
|
|
+use v5.36;
|
|
use warnings;
|
|
|
|
use Carp;
|
|
-use Feature::Compat::Try;
|
|
+use experimental qw( try );
|
|
|
|
use Scalar::Util qw( blessed );
|
|
|
|
--- a/examples/eval-expr.pl
|
|
+++ b/examples/eval-expr.pl
|
|
@@ -6,7 +6,7 @@
|
|
package ExprParser;
|
|
use base qw( Parser::MGC );
|
|
|
|
-use Feature::Compat::Try;
|
|
+use experimental qw( try );
|
|
|
|
# An expression is a list of terms, joined by + or - operators
|
|
sub parse
|
|
--- a/examples/parse-bencode.pl
|
|
+++ b/examples/parse-bencode.pl
|
|
@@ -6,7 +6,7 @@
|
|
package BencodeParser;
|
|
use base qw( Parser::MGC );
|
|
|
|
-use Feature::Compat::Try;
|
|
+use experimental qw( try );
|
|
|
|
# See also
|
|
# https://en.wikipedia.org/wiki/Bencode
|
|
--- a/examples/parse-dict.pl
|
|
+++ b/examples/parse-dict.pl
|
|
@@ -6,7 +6,7 @@
|
|
package DictParser;
|
|
use base qw( Parser::MGC );
|
|
|
|
-use Feature::Compat::Try;
|
|
+use experimental qw( try );
|
|
|
|
sub parse
|
|
{
|
|
--- a/examples/parse-jsonlike.pl
|
|
+++ b/examples/parse-jsonlike.pl
|
|
@@ -13,7 +13,7 @@
|
|
package JsonlikeParser;
|
|
use base qw( Parser::MGC );
|
|
|
|
-use Feature::Compat::Try;
|
|
+use experimental qw( try );
|
|
|
|
sub parse
|
|
{
|
|
--- a/examples/parse-pod.pl
|
|
+++ b/examples/parse-pod.pl
|
|
@@ -6,7 +6,7 @@
|
|
package PodParser;
|
|
use base qw( Parser::MGC );
|
|
|
|
-use Feature::Compat::Try;
|
|
+use experimental qw( try );
|
|
|
|
sub parse
|
|
{
|