What about the -B file test operator?

if (-B $file){
   block of code
}

It works in linux, but I'm not sure about windows.

brian

On Thu Oct 10, 2002 at 01:54:04PM -0400, [EMAIL PROTECTED] wrote:
> Dear all,
> 
> A question, How can I figure out whether it is binary file or ASCII file
> under one directory using perl? Does perl have a function for that? I have a
> project to pick up various binary files from some directories.
> 
> Thanks in advance!
> Have a nice day!
> 
> Lixin
> _______________________________________________
> Perl-Win32-Admin mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

-- 
Brian Noble
Tech Support Engineer
[EMAIL PROTECTED]
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to