[EMAIL PROTECTED] (Pete Lancashire) wrote:
>     use Mac::Files;
>     
>     $thefile = "Fred:f1:f1-1:file";
>     $thealias = "Fred:f1:alias";
>     
>     open (FH, $thealias);
>     @stuff = GetAliasInfo FH, 0;
>     close (FH);
>     
>     This gives me a strange error 
>     
>     # Can't locate object method "GetAliasInfo" via package "IO::Handle".
>     File 'Fred:test2.pl'; Line 10

This error means that perl is interpreting
    GetAliasInfo FH, 0;
  as
    FH->GetAliasInfo(0);
  when you really mean
    GetAliasInfo(FH, 0);

Try adding the parentheses to make it explicit.

It might also be that &GetAliasInfo hasn't been exported into your
namespace.  In that case, do Mac::Files::GetAliasInfo(FH, 0);

Or Mac::Files::GetAliasInfo(*FH, 0);

There are so many choices! =)


  -------------------                            -------------------
  Ken Williams                             Last Bastion of Euclidity
  [EMAIL PROTECTED]                            The Math Forum

Reply via email to