Re: uninitialized value in numeric error

2001-06-13 Thread Michael Fowler
On Wed, Jun 13, 2001 at 04:30:01PM -0700, David Kenneally wrote: > Hello- > > This is a really basic question, sorry. Can anybody tell me why I get the > following error when I run this script: > > "Use of uninitialized value in numeric lt (<) at ./x2 line 8" "Use of uninitialized value" means

RE: uninitialized value in numeric error

2001-06-13 Thread David Kenneally
Hello- I get the error both when it is quoted and when it is not. It still works, and I guess this is just a notification, but I was hoping there might be a more correct way. Thanks! David "Not quite a Saint" Kenneally >David, >Verily, on Wednesday June 13, 2001, the Sainted David Kenneally

Re: uninitialized value in numeric error

2001-06-13 Thread John Fox
David, Verily, on Wednesday June 13, 2001, the Sainted David Kenneally spake: > #!/usr/bin/perl -w > > > opendir DIRH, "/home/dwk/test" or die "can't open it: $!\n"; > @allfiles = readdir DIRH; > closedir DIRH; > foreach $temp (@allfiles) { > if (-M $temp < "0.5") { >print "$temp\n"; >