summaryrefslogtreecommitdiff
path: root/t/op/sprintf.t
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-13 21:29:15 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-13 21:29:15 +0000
commit9f1b1f2d9ab55954ee07a14c4ab04bd3dd1f99d5 (patch)
treef3e99c675e49f21e2edc6600cd4c0b10b14c41d5 /t/op/sprintf.t
parent828c4421567f1da54062ec5edfcc3250be409b16 (diff)
downloadperl-9f1b1f2d9ab55954ee07a14c4ab04bd3dd1f99d5.tar.gz
lexical warnings update for docs and tests (from Paul Marquess)
p4raw-id: //depot/perl@5712
Diffstat (limited to 't/op/sprintf.t')
-rwxr-xr-xt/op/sprintf.t7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/op/sprintf.t b/t/op/sprintf.t
index 70e55cb6cb..4d54d2c317 100755
--- a/t/op/sprintf.t
+++ b/t/op/sprintf.t
@@ -2,9 +2,14 @@
# $RCSfile: sprintf.t,v $$Revision: 4.1 $$Date: 92/08/07 18:28:27 $
+BEGIN {
+ chdir 't' if -d 't';
+ unshift @INC, '../lib';
+}
+use warnings;
+
print "1..4\n";
-$^W = 1;
$SIG{__WARN__} = sub {
if ($_[0] =~ /^Invalid conversion/) {
$w++;