This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Upgrade to File-Temp-0.21
[perl5.git] / lib / validate.pl
index bee7bba..c655872 100644 (file)
@@ -1,5 +1,3 @@
-;# $Header: validate.pl,v 3.0 89/10/18 15:20:04 lwall Locked $
-
 ;# The validate routine takes a single multiline string consisting of
 ;# lines containing a filename plus a file test to try on it.  (The
 ;# file test may also be a 'cd', causing subsequent relative filenames
@@ -17,6 +15,7 @@
 ;# The routine returns the number of warnings issued.
 
 ;# Usage:
+;#     require "validate.pl";
 ;#     $warnings += do validate('
 ;#     /vmunix                 -e || die
 ;#     /boot                   -e || die
@@ -90,11 +89,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;