Forward from an off-list exchange. Patrick
----- Original Message ----- From: "Peter Krzystofiak" <[EMAIL PROTECTED]> To: "Patrick LeBoutillier" <[EMAIL PROTECTED]> Sent: Thursday, January 16, 2003 11:17 AM Subject: RE: running Hello Patrick, Thanks for the help. It works. :) Peter Krzystofiak -----Original Message----- From: Patrick LeBoutillier [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 7:34 AM To: Peter Krzystofiak Subject: Re: running Peter, How can main return a String? It prints it? To get the value in Perl you need a method that returns the String to the caller, i.e.: String AmPm(){ ... return t ; } See the STUDYING section in the documentation. You just need to add the CLASSPATH option to the directory where your class is. use Inline ( Java => 'STUDY', CLASSPATH => '/path/to/your/class/file', STUDY => ['YourClass'], ) ; my $ampm = new YourClass() ; print $ampm->AmPm() ; --------------------- Patrick LeBoutillier Laval, Quebec, Canada ----- Original Message ----- From: "Peter Krzystofiak" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 15, 2003 5:15 PM Subject: running I have a small object that returns a String.... an "AM" or "PM" depending on the time of day. the main() returns String (the am/pm) how do i run this class from Inline::Java ?