1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
Description: silence "given / when is experimental" warnings
necessarily ugly to make it compatible with older perls, see
http://blogs.perl.org/users/mike_b/2013/06/a-little-nicer-way-to-use-smartmatch-on-perl-518.html
Author: Florian Schlichting <fsfs@debian.org>
Forwarded: https://rt.cpan.org/Ticket/Display.html?id=105779
--- a/lib/POE/Component/Jabber.pm
+++ b/lib/POE/Component/Jabber.pm
@@ -3,6 +3,7 @@
use strict;
use 5.010;
+no if $] >= 5.017011, warnings => 'experimental::smartmatch';
use POE;
use POE::Wheel::ReadWrite;
use POE::Wheel::SocketFactory;
--- a/lib/POE/Component/Jabber/J14.pm
+++ b/lib/POE/Component/Jabber/J14.pm
@@ -3,6 +3,7 @@
use strict;
use 5.010;
+no if $] >= 5.017011, warnings => 'experimental::smartmatch';
use POE;
use POE::Component::Jabber::Events;
use POE::Filter::XML;
--- a/lib/POE/Component/Jabber/J2.pm
+++ b/lib/POE/Component/Jabber/J2.pm
@@ -3,6 +3,7 @@
use strict;
use 5.010;
+no if $] >= 5.017011, warnings => 'experimental::smartmatch';
use POE qw/ Wheel::ReadWrite /;
use POE::Component::SSLify qw/ Client_SSLify /;
use POE::Component::Jabber::Events;
--- a/lib/POE/Component/Jabber/Legacy.pm
+++ b/lib/POE/Component/Jabber/Legacy.pm
@@ -3,6 +3,7 @@
use strict;
use 5.010;
+no if $] >= 5.017011, warnings => 'experimental::smartmatch';
use POE;
use POE::Component::Jabber::Events;
use POE::Filter::XML;
--- a/lib/POE/Component/Jabber/XMPP.pm
+++ b/lib/POE/Component/Jabber/XMPP.pm
@@ -3,6 +3,7 @@
use strict;
use 5.010;
+no if $] >= 5.017011, warnings => 'experimental::smartmatch';
use POE qw/ Wheel::ReadWrite /;
use POE::Component::SSLify qw/ Client_SSLify /;
use POE::Component::Jabber::Events;
|