|
|
| Welcome to the Monastery | |
| PerlMonks |
Re: mac file ownershipby LD2 (Curate) |
| on May 26, 2001 at 01:14 UTC ( [id://83459]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
I think that MacPerl::GetFileInfo should work. MacPerl::GetFileInfo(FILE)
In scalar context, returns the file type. In array context, returns (creator,type). Examples:
MacPerl::GetFileInfo(yin);
Returns "TEXT" or ("MPS ", "TEXT"). You may want to look at this MacPerl Primer as well.
good luck.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||