in reply to Re: Re: Pattern matching against a variable
in thread Pattern matching against a variable

Are you sure $username is defined and initialized? Turning on the likes of strict and warnings might help, as it looks like $username is empty/undefined and therefore creating an empty regex which matches everything.
HTH

_________
broquaint

  • Comment on Re: Re: Re: Pattern matching against a variable

Replies are listed 'Best First'.
Re: Re: Re: Re: Pattern matching against a variable
by bonoboy (Sexton) on Nov 04, 2003 at 11:35 UTC
    See, this is what happens when you ask questions for other people. The permissions on the file were screwy, and the guy was teesting it from the command line as root in one instance, while from the web in another. Anyway, good old chmod fixed it. Cheers.
    toeslikefingers.com - because you've got too much time on your hands