perl.inline
[Top] [All Lists]

Inline Integer question

Subject: Inline Integer question
From: MV5492@xxxxxxx (Mike Vanole)
Date: Fri, 18 Jul 2008 15:17:20 -0500
Newsgroups: perl.inline

Re: Inline Java and the Business Objects SDK

I'm stuck on what I think it an integer input problem.

I need to make sure that I'm replicating this Java:

Integer groupInt = new Integer(iGroup.getID());

I can get a value from iGroup.getID(). That value is "2"

And I make sure it's an integer (perl):

$groupInt = int($iGroup->getID());

But I don't think this is a correct way to translate the Java above

I think I need coerce, but I couldn't make that work.

What is the correct way to ensure $groupInt is a Java integer?

Thanks,
Mike


<Prev in Thread] Current Thread [Next in Thread>