This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: [PATCH] 5.004_04 or 5.004_64: Benchmark.pm: add run-for-some-time
[perl5.git] / lib / validate.pl
index bee7bba..ec4a04b 100644 (file)
@@ -1,4 +1,4 @@
-;# $Header: validate.pl,v 3.0 89/10/18 15:20:04 lwall Locked $
+;# $RCSfile: validate.pl,v $$Revision: 4.1 $$Date: 92/08/07 18:24:19 $
 
 ;# The validate routine takes a single multiline string consisting of
 ;# lines containing a filename plus a file test to try on it.  (The
@@ -17,6 +17,7 @@
 ;# The routine returns the number of warnings issued.
 
 ;# Usage:
+;#     require "validate.pl";
 ;#     $warnings += do validate('
 ;#     /vmunix                 -e || die
 ;#     /boot                   -e || die
@@ -90,11 +91,11 @@ sub valmess {
            $mess =~ s/ does not / should not / ||
            $mess =~ s/ not / /;
        }
-       print stderr $mess,"\n";
+       print STDERR $mess,"\n";
     }
     else {
        $this =~ s/\$file/'$file'/g;
-       print stderr "Can't do $this.\n";
+       print STDERR "Can't do $this.\n";
     }
     if ($disposition eq 'die') { exit 1; }
     ++$warnings;