in reply to How to get array elements from reference ?

$wfs is a reference to an array

I doubt that. What does the TeamSite documentation say?

Most likely, ->GetActiveWorkflows() returns an OLE collection, which would mean you have to work with $wfs->Count and $wfs->Item() or the in function of Win32::OLE.

If $wfs really contains a number after your assignment, then what you proposed should work. What happened when you tried it?

Replies are listed 'Best First'.
Re^2: How to get array elements from reference ?
by manishrathi (Beadle) on Jun 08, 2011 at 06:38 UTC
    ARRAY(0x1a7cb04)

    I am getting this output, when I run this script

        I want to print content of the array. I have used following code for that

        use TeamSite::WFsystem ;

        $system = new TeamSite::WFsystem() ;

        @jobs = $system->GetActiveWorkflows();

        foreach $job (@jobs){

        print "$job \n" ;

        }

        why am I still getting reference to array printed out ?