Greetings,
I'm trying to understand how to use the Mac::Files NewAlias function.
I have not found any code examples and I'm struggling.
The NewAlias function creates a filehandle. How do I create an alias
file from the alias filehandle?
#!/usr/bin/perl -wl
use File::Basename;
use Mac::Files;
my $dir = "/tmp/directory";
my $alias = NewAlias($dir);
my $alias_path = ResolveAlias($alias);
print basename($alias_path);
print $alias_path;
Do I need to use the function FSpCreate?
Regards,
Laurence Haynes