> 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message
- GENERIC from today does not detect system console on ... Jordan K. Hubbard
- Re: GENERIC from today does not detect system co... Kenneth Wayne Culver
- Re: GENERIC from today does not detect system co... Marc van Woerkom
- Re: GENERIC from today does not detect syste... Jordan K. Hubbard
- Re: GENERIC from today does not detect s... Peter Wemm
- Re: GENERIC from today does not dete... Chris Costello
- Re: GENERIC from today does not... Peter Wemm
- Re: GENERIC from today does... Chris Costello
- Re: GENERIC from today ... Chris Costello
- Re: GENERIC from today does not... Mark Murray
- Re: GENERIC from today does not dete... Jordan K. Hubbard
- Re: GENERIC from today does not... Daniel C. Sobral
- Re: GENERIC from today does not... Peter Wemm
- Re: GENERIC from today does... Marc van Woerkom
- Re: GENERIC from today ... Marc van Woerkom
- Re: GENERIC from today ... NAKAJI Hiroyuki
- Re: GENERIC from today ... Jordan K. Hubbard
- Re: GENERIC from today does not... Matthew Dillon
- Re: GENERIC from today does... Donn Miller
- Re: GENERIC from today ... Wes Morgan
