On Wed, 30 Jun 2004 12:00:44 -0500, Joe Stuart wrote > I have a script that recursively goes through the filesystem and changes > links in html documents The problem I'm having is that it chokes on > directories with spaces in there names. Does anyone have any > suggestions on how to deal with this? I've tried using both glob and > readdir to go through the directory. Glob doesnt error out, but it > doesnt change the links in the documents and when using readdir I get > this error message. > Bad symbol for filehandle at ./recurse.pl line 15. > > Thanks
A website with spaces in directory names? Yuck. Without seeing the code, hard to say, but try double-quoting the variable that contains the filename on this line number. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>