File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Perl & Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Perl & Java" Watch "Perl & Java" New topic
Author

Perl & Java

V Bose
Ranch Hand

Joined: Jul 10, 2003
Posts: 113
Is there a way I can execute Perl commands from within Java.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Yes-- use the Runtime.exec() methods to execute the perl interpreter.


[Jess in Action][AskingGoodQuestions]
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1817

Are you looking for a Java-PERL interpreter API, or just invoking PERL scripts as if from the command-line? If the latter, Runtime.exec() calls should work...

Argh! I've been EFH'ed
[ March 03, 2004: Message edited by: Joel McNary ]

Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Originally posted by Joel McNary:

Argh! I've been EFH'ed

All part of my evil plan...
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
Originally posted by Ernest Friedman-Hill:

All part of my evil plan...

Which one of them this time?


42
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Perl & Java
 
Similar Threads
Perl + JMS ?
WA #1.....word association
Perl and Java
Is there a data structure in Java equivalent to the hash in Perl?
session never expires in javaranch