summaryrefslogtreecommitdiffstats
path: root/sys/pc98/conf
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-06-17 19:06:13 +0000
committerpeter <peter@FreeBSD.org>2000-06-17 19:06:13 +0000
commit9b7f685f773a6a2a4735d53054157356600d4b72 (patch)
treefc2cfc0d18d9197b604e983acf561a1e51af23c8 /sys/pc98/conf
parenta3b2b68e080cf32cfbaf8a38709b9038fae50695 (diff)
downloadFreeBSD-src-9b7f685f773a6a2a4735d53054157356600d4b72.zip
FreeBSD-src-9b7f685f773a6a2a4735d53054157356600d4b72.tar.gz
Use while (<>) instead of while(<STDIN>) so that perl will automagically
deal with filename arguments. It is amazing how much you forget over time. Thanks to the people that reminded me this. I knew there was an easy way that didn't involve messing with $argv, filehandles, etc, but just could not remember - all of my books are on the opposite side of the planet..
Diffstat (limited to 'sys/pc98/conf')
-rw-r--r--sys/pc98/conf/gethints.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pc98/conf/gethints.pl b/sys/pc98/conf/gethints.pl
index 51ac8a9..1a90029 100644
--- a/sys/pc98/conf/gethints.pl
+++ b/sys/pc98/conf/gethints.pl
@@ -8,7 +8,7 @@
#
# $FreeBSD$
-while (<STDIN>) {
+while (<>) {
chop;
s/#.*//;
next unless /^device/;
OpenPOWER on IntegriCloud