X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fvalidate.pl;h=ec4a04b54367422e2ce12f516e45cda07f5ba89c;hb=75abe269e0d31ceddf18e82f302e49668a65999c;hp=bee7bbaddf60bc25189623d9ece270319aea98c9;hpb=a687059cbaf2c6fdccb5e0fae2aee80ec15625a8;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/validate.pl b/lib/validate.pl index bee7bba..ec4a04b 100644 --- a/lib/validate.pl +++ b/lib/validate.pl @@ -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;