Jerry Preston wrote:
>
> Hi!
Hello,
> I am trying to determine if a is linked or not. I am using the following:
If you have a file and you want to determine if another file is linked
to it then you will have to search through all files on your system to
find it/them. If you find a symbolic link using -l you can determine
what it links to with the readlink() function.
> if( -f "$fp/$program" ) {
> print "2 programs $program*\n";
^
File globs don't work in strings.
> $programs{ program }{ $program } = "$fp/$program";
> }
>
> and
>
> if( -l "$fp/$program" ) {
> print "2 programs $program*\n";
> $programs{ program }{ $program } = "$fp/$program";
> }
>
> I get the same result for two files! One is linked and the other is not.
Could you please rephrase your problem more clearly. I don't understand
what you are trying to do here.
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]