On Jun 27, [EMAIL PROTECTED] said:
>is there a flag that will test to see if a file is a symlink? i am only
>finding tests for directory, perms and such.
Yes, it's the -l test.
if (-l $foo) {
# symbolic link
print "$foo points to ", readlink($foo), "\n";
}
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
I am Marillion, the wielder of Ringril, known as Hesinaur, the Winter-Sun.
Are you a Monk? http://www.perlmonks.com/ http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc. http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter. Brother #734
** Manning Publications, Co, is publishing my Perl Regex book **