[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Help I can't get Mac::Files to work??



I've tried efverything, I don't think it's me.  (But I'll bet it is :)
Other sample things work just fine!!

Anybody have any thoughts as to why this won't work:

# Help!! I can't get this simple thing to work!!
# wls@isi.edu

use Mac::Files;

my($type) = 'macs';
print "type = $type\n";

# error: Undefined subroutine &File::FindFolder called.
my ($systempath) = &File'FindFolder($type);
print "system path: $systempath\n\n";

# works
my($creator, $type) =
&MacPerl'GetFileInfo(":logs:BackupWatcher-Mar1997.text");
print "\nMac creator=[$creator] Mac type=[$type]\n\n";

#works
my($phone) = MacPerl::Ask("Enter your phone number:");
print "phone = $phone\n\n";

use Mac::MoreFiles;

# works
my($application) = $Application{"MrPL"};
print "application = $application\n";


print "Thanks in advance. wls\n";