instead of parsing for "->", you can just use this file test function: Code: if -l $file that's probably more reliable
if -l $file