RE: [cciug] ?ccperl directory file

From: Peter Vogel (QA CCT) (Peter.Vogel@e2open.com)
Date: Wed Jul 11 2001 - 18:57:23 EDT


 
>
> if(-f $CLEARCASE_PN){
> # it's a file
> }elsif(-d $CLEARCASE_PN){
> # it's a directory
> }else{
> # it's invalid, or inaccessible from your current directory

Not necessarily, it could be a symlink, or a block special file,
etc.

> (unlikely)

true :-)

-Peter
>
> --Jay C. Parangalan, mailto:jparangalan@siebel.com, ext.16266
>
>
> -----Original Message-----
> From: chunbo shao [mailto:chunbo.shao@sabre.com
> Sent: Wednesday, July 11, 2001 11:44 AM
> To: cciug@rational.com
> Subject: [cciug] ?ccperl directory file
>
>
>
> Hi,
>
> Using ccperl, how can i tell a return from $CLEARCASE_PN is a
> directory
> or a file? Any help is appreciated.
>
> Chunbo
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> can also
> unsubscribe
>
> http://clearcase.rational.com/cciug/mailing_list.html
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> can also
> unsubscribe
>
> http://clearcase.rational.com/cciug/mailing_list.html
>
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



This archive was generated by hypermail 2b29 : Tue Jul 31 2001 - 22:03:53 EDT