Listing 1.
JPLSimple.jpl - Embedding Perl in Java
Brian Jepson

JPL: The Java-Perl Library
The Perl Journal, Winter 1997
 

public class JPLSimple {



  /**

   * The constructor for this class. 

   */ 



  public JPLSimple() { 

  }



  perl void sayHelloToTheNicePeople() {{



    @people = ('Nemo', 'Flip', 'Dr. Pill'); 

    foreach (@people) { 

        print "Hello, $_.\n";

    }



  }}

 

  /**

   * The main() method. 

   */ 



  public static void main (String[] argv) { 

      JPLSimple js = new JPLSimple(); 

      js.sayHelloToTheNicePeople(); 

  }