Date: Sat, 17 Jun 2000 11:06:44 +0200 From: Mark Murray <mark@grondar.za> To: chris@calldei.com Cc: Peter Wemm <peter@netplex.com.au>, "Jordan K. Hubbard" <jkh@zippy.osd.bsdi.com>, van.woerkom@netcologne.de, current@FreeBSD.ORG Subject: Re: GENERIC from today does not detect system console on my box Message-ID: <200006170906.LAA13791@grimreaper.grondar.za> In-Reply-To: <20000616202921.D98160@holly.calldei.com> ; from Chris Costello <chris@calldei.com> "Fri, 16 Jun 2000 20:29:22 EST." References: <20000616202921.D98160@holly.calldei.com>
index | next in thread | previous in thread | raw e-mail
> On Friday, June 16, 2000, Peter Wemm wrote:
> > Err.. how did you run it? 'perl < MYKERNEL'? If you run 'perl MYKERNEL'
> > it will generate nothing because I was kinda lame and didn't know how to do
> > argument parsing. :-]
>
> Couldn't have hurt to ask.
>
> while (defined($ARGV[0])) {
> # ... parse ...
> shift;
> }
Better:
while (<>) {
#stuff
}
Handles both the "myprog < file" and the "myprog file1 file2 ..." cases
automagically.
M
--
Mark Murray
Join the anti-SPAM movement: http://www.cauce.org
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006170906.LAA13791>
