http://www.perlmonks.org?node_id=338984


in reply to Perl and MS Project

Hello,

I have never used any of these packages, but the error you are getting
Is very much like the error you would get if the string 'test.mpp'
was the value of "$app->{Projects}". In other words I think you are trying
to call a method on a string value.

This code produces a similar error.

#!/usr/local/bin/perl5.6.0 -w use strict; my $app = { Projects => 'test.mpp' }; my $r = $app->{Projects}->Item(1);

Hope that helps.

Wonko

Replies are listed 'Best First'.
Re: Re: Perl and MS Project
by PerliKnight (Acolyte) on Mar 23, 2004 at 18:31 UTC
    ...not really. Not sure what you're getting at?
    That code was lifted from another bit of the Monastery and since I've got other Win32 things running just fine, I kind of expected it just to work. So either the code is wrong or I've something missing from my PC but am not sure which it is...
    Thanks,
    David