Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- Add missing 'use warnings;' as reported by CPANTS. #4

Merged
merged 2 commits into from
Jun 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 1 addition & 8 deletions lib/Kwalify.pm
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,14 @@
package Kwalify;

use strict;
use warnings;

use base qw(Exporter);
use vars qw(@EXPORT_OK $VERSION);
@EXPORT_OK = qw(validate);

$VERSION = '1.22_90';

BEGIN {
if ($] < 5.006) {
$INC{"warnings.pm"} = 1;
*warnings::import = sub { };
*warnings::unimport = sub { };
}
}

sub validate ($$) {
my($schema, $data) = @_;
my $self = Kwalify::Validator->new;
Expand Down
2 changes: 2 additions & 0 deletions lib/Schema/Kwalify.pm
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
package Schema::Kwalify;

use strict;
use warnings;

use vars qw($VERSION);
$VERSION = sprintf("%d.%02d", q$Revision: 1.4 $ =~ /(\d+)\.(\d+)/);

Expand Down