Hello again, This is so basic I'm embarrassed to ask. Sorry. 1. I'm trying to pass a regexp in $bandNameRE through to a while loop, but it keeps bailing complaining about an "unrecognised escpape \S", but when I put the regexp directly into the condition it's happy. Why is this? 2. The other thing is that $name could be upper or lower case. I know I need to chuck \i into the regexp, which I assumed would be (^$bandName\i)(\S)(.*) but quite clearly isn't.
I think I need a new book. $name = <STDIN>; chomp $name; $nameRE = "(^$name)(\S)(.*)"; while ($_ = readdir(LISTFILES)){ if (/$nameRE/){ #DO SOME STUFF } } Thanks in advance for your time. CC _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]