Hello. I looked everywhere for as much information as I could find, but I've not found any resources to help me with some specific problems I've been having trying to port a perl script, so any input is appreciated. I've gotten ahold of a script by Matt Wright called simplesearch.pl that works wonderfully on my linux box. However, when I tried to run it on a Macintosh Web Server, I ran into a few problems. Most notable are those with using such things I take for granted in linux such as `ls` and working with directories & file listings and so forth. Specifically, I've got an array that contains such things as: Power HD:Stuff Ä:Home.html Power HD:Stuff Ä:line_test.html Power HD:Working Ä:PrepPage_demo.html (plus quite a few other files that slipped through a -T test (non-text files)) When I try to iterate through this array and 'slurp' the contents into another array using a construct such as this: foreach $FILE (@FILES) { $count = 0; open(FILE,"$FILE"); @LINES = <FILE>; close(FILE); [- irrelevant code snipped -] } ... something seems to break somewhere. I generally only get results from the first one or two files (i'm searching for strings within these files). I think that what's happening as that MacPerl might be choking on the non-text files that slip through the -T... but I'm not exactly sure, as I've only been experimenting with MacPerl for only a few weeks now. Has anyone else come across a situation like this? Can anyone tell me what I should do as a workaround? Any and all input is welcome. Thanks, -Kent Kent Cowgill .---'''''---... 1 West State Street Intersites, Inc. 'i n t e r s i t e s. Geneva, IL 60134 .-'-.-'-.-'-.-'-.-'-. ''''---.....---' .-'-.-'-.-'-.-'-.-'-.-'-. kentc@intersites.com http://www.intersites.com/