473,750 Members | 2,225 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Exange of informations and objects between PERL and JAVA

Hi all,

I would like having more informations on how we could exchange
informations and/or objects between PERL and JAVA.

We have a Java programs that open, maintain and close telnet
connections, for PERL scripts...

Is it possible, to echange the Java telnet session object to PERL
programs ? Or thoses two languages could not exchange objects or such
structure ?

If it's not possible, how could I exchange textual informations
between a Java program and a PERL script on the same UNIX computer ?
Socket, Pipe,... ?

Or mayby, there is another solution ?

Thanks a lot for your help.

Best regards.

Lionel.
Jul 17 '05 #1
2 2925
On 23 Aug 2004 03:51:00 -0700, Lionel wrote:
I would like having more informations


<http://google.com/groups?as_ugrou p=comp.lang.jav a.*&as_usubject =PERL%20JAVA%20 exchange>

That is obvious from the excessive
cross-posting to the groups..
comp.lang.java,
comp.lang.java. api,
comp.lang.java. developer,
comp.lang.java. help,
comp.lang.java. misc
...most of which are invalid.

As well as to the multi-posted messages to
comp.lang.java. programmer and comp.lang.java. tech.

Please
a) do not cross post.
<http://www.physci.org/codes/javafaq.jsp#xpo st>
b) do not mutli-post
<http://www.physci.org/codes/javafaq.jsp#xpo st>
c) choose the single group to which you post
from a list of valid groups, such as..
<http://www.physci.org/codes/javafaq.jsp#gro ups>

*Note*, follow-ups set to the only appropriate
group in this circumstance, c.l.j.help..

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 17 '05 #2
Lionel wrote:
I would like having more informations on how we could exchange
informations and/or objects between PERL and JAVA.

We have a Java programs that open, maintain and close telnet
connections, for PERL scripts...

Is it possible, to echange the Java telnet session object to PERL
programs ? Or thoses two languages could not exchange objects or such
structure ?

If it's not possible, how could I exchange textual informations
between a Java program and a PERL script on the same UNIX computer ?
Socket, Pipe,... ?

Or mayby, there is another solution ?


You could, maybe, use a FIFO. If the Java application is getting data
via telnet and then using the Perl script to parse the data, you could
just write to a FIFO from the Java application and let the Perl script
read the data coming into the FIFO. This, of course, opens up a host of
issues (such as the fact a FIFO isn't like a regular file, so reading
isn't done the same way as with a regular file - it's done with an
infinite loop).

Just a question for you to ponder .... why not just use one or the other
language? Regular expressions were introduced to Java in version 1.4
and Perl has the Net::Telnet module to open, read, and close telnet
connections. Seems like a lot of extra work if you have the question
you have asked. :-)

HTH

Jim
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
5950
by: John Smith | last post by:
Hello, I have a rather odd question. My company is an all java/oracle shop. We do everything is Java... no matter what it is... parsing of text files, messaging, gui you name it. My question is this... is Perl so much better at parsing text files and outputing that we would see a substantial speed increase? We process about 10 million records in flat files a day for reformatting before putting them in a DB. Also, when it comes to...
1
3033
by: bezeee | last post by:
At my work we are in the process of building a tool to test an XML based API. Basically, XML in and XML out over http. Currently, there are two engines that do all of the schema validations, xml diffs, sending/receiving, etc. One of these engines in implemented in C# and the other in Java. Now the choice comes down to which scripting language we choose (Perl, Python or Jython) to tie into one of these engines. The scripting language...
0
2382
by: Lionel | last post by:
Hi all, I would like having more informations on how we could exchange informations and/or objects between PERL and JAVA. We have a Java programs that open, maintain and close telnet connections, for PERL scripts... Is it possible, to echange the Java telnet session object to PERL programs ? Or thoses two languages could not exchange objects or such
3
8172
by: John Smith | last post by:
Hello, I have a rather odd question. My company is an all java/oracle shop. We do everything is Java... no matter what it is... parsing of text files, messaging, gui you name it. My question is this... is Perl so much better at parsing text files and outputing that we would see a substantial speed increase? We process about 10 million records in flat files a day for reformatting before putting them in a DB. Also, when it comes to...
5
5771
by: John Smith | last post by:
Can someone point me to an example of how to implement and access the kind of object shown below? Most of the examples if found are an object that contains one other object. I need to create an object that contains a hash of sub-objects each sub-object is made up of a number of different objects and an array of an object type. Object1 contains scalars
2
2707
by: david | last post by:
Hello all, let's me explains my long problem: I'm doing an intranet with a media part. So im must be able to upload files on a ftp server AND have a record of informations about this file and meta date in a MySQL database, shown in a php page. So the first thing i was doing was:
11
9267
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
458
21348
by: wellstone9912 | last post by:
Java programmers seem to always be whining about how confusing and overly complex C++ appears to them. I would like to introduce an explanation for this. Is it possible that Java programmers simply aren't smart enough to understand C++? This is not merely a whimsical hypothesis. Given my experience with Java programmers --- the code they write and the conversations they have --- Occam's Razor points to this explanation. For example,...
0
9000
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8838
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9577
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9339
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8260
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6804
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3322
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2225
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.