in reply to symbolic links
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) { # ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: symbolic links
by garu (Scribe) on Jun 26, 2007 at 00:41 UTC | |
by muizelaar (Sexton) on Jul 04, 2007 at 19:24 UTC |