your grep { -T "$dir/$_" } selects everything that appears to be a text file. If your executable is a compiled program (i.e. not an executable script) it's probably getting filtered out.
If you want to link to every file, you can use grep { -f "$dir/$_" }.
As an aside, I strongly recommend you use strict at the top of every script. It'll catch a lot of errors at compile time that might otherwise become hard to locate bugs. For your script to work with strict, you need to declare $file, like so:
# ... foreach my $file (@array) { # ...
In reply to Re: symbolic links
by Joost
in thread symbolic links
by muizelaar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |