in reply to Determine if object is file or directory?

The -f and -d operators do exactly this. See the perl docs for built-in functions and look at the description of -X.

jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.

Replies are listed 'Best First'.
Re: Re: Determine if object is file or directory?
by Fletch (Bishop) on Apr 07, 2004 at 19:27 UTC

    Or rather than trudging through perlfunc jump straight to it with perldoc -f -X.

      What, didn't you like my -X link?

      jdporter
      The 6th Rule of Perl Club is -- There is no Rule #6.