From: L3ECH <l3...@l3...> - 2003-03-31 17:40:16
|
On Mon, 31 Mar 2003 10:29:19 -0700 "Ashley M. Kirchner" <as...@pc...> wrote: > L3ECH wrote: > > >i'm running ids-0.82 on linux debian unstable. > >i'm having a problem with ids' search feature. it doesn't work at all. the error message i get is: > > > >Software error: > >Can't use string ("1") as a subroutine ref while "strict refs" in use at /usr/share/perl/5.8.0/File/Find.pm line 1025. > > > >i don't know if it's an ids bug, a perl bug, or both. i believe it's probably because i running perl 5.8.0 > > > It's a programmer error. I forgot a \ somewhere: > > In index.cgi, search and find: > > find ({wanted => &searchForFiles, follow_fast=>1}, "./albums/"); > > And change it to: > > find ({wanted => \&searchForFiles, follow_fast=>1}, "./albums/"); > > (note the slash) thanks a lot. now works :) |