]> iEval git - number-phone-ro.git/blobdiff - lib/Number/Phone/RO.pm
Add is_adult to POD
[number-phone-ro.git] / lib / Number / Phone / RO.pm
index adf4e2d19a7952dc4fa56e82ec18ff99199a4ba5..0c1e1e105fbf7cc26d08dfdbb9c58e31baf13fe4 100644 (file)
@@ -7,7 +7,7 @@ use parent qw/Number::Phone/;
 use utf8;
 use re '/s';
 
-sub AREA_NAMES (); ## no critic (ProhibitSubroutinePrototypes)
+sub AREA_NAMES ();
 
 our $VERSION = '0.002';
 
@@ -87,8 +87,8 @@ sub query_portabilitate {
        $self->_info->{portabilitate_queried} = 1;
        my $req = $ht->get("http://portabilitate.ro/ro-no-0$$self");
        return unless $req->{success};
-       my ($initial_operator) = $req->{content} =~ /lnkOperatorInitial">([^<]*)</;
-       my ($current_operator) = $req->{content} =~ /lnkOperator">([^<]*)</;
+       my ($initial_operator) = $req->{content} =~ /lnkOperatorInitial">([^<]*)</x;
+       my ($current_operator) = $req->{content} =~ /lnkOperator">([^<]*)</x;
        $initial_operator //= $current_operator;
        $self->_info->{initial_operator} = $initial_operator;
        $self->_info->{current_operator} = $current_operator;
@@ -192,6 +192,8 @@ following methods from L<Number::Phone> are overridden:
 
 =item B<is_specialrate>
 
+=item B<is_adult>
+
 =item B<country_code>
 
 Always returns 40.
This page took 0.009678 seconds and 4 git commands to generate.