A very simple example program Comparing Perl, Python and Java
From: Richard Monson-Haefel (rmh_at_burtongroup.com)
Date: 12/21/04
- Next message: Bob Showalter: "RE: A very simple example program Comparing Perl, Python and Java"
- Previous message: Mike Donnelly: "Getopt::Long , handles the number zero differently.."
- Next in thread: Bob Showalter: "RE: A very simple example program Comparing Perl, Python and Java"
- Maybe reply: Bob Showalter: "RE: A very simple example program Comparing Perl, Python and Java"
- Reply: JupiterHost.Net: "Re: A very simple example program Comparing Perl, Python and Java"
- Reply: John W. Krahn: "Re: A very simple example program Comparing Perl, Python and Java"
- Maybe reply: Richard Monson-Haefel: "RE: A very simple example program Comparing Perl, Python and Java"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 21 Dec 2004 15:29:33 -0700 To: <beginners@perl.org>
Hi,
I'm writing a paper comparing the use of Perl, Python and Java. My Perl
is pretty bad (as is my Python), so I thought I would check to see if
there is a more efficient way of doing it.
Here is the Perl program
http://www.rafb.net/paste/results/4px8PI74.html
If there is a more efficient, but readable way to write the script
(especially, it would see the first for loop which filters out names
longer than 4 characters) I would really appreciate it.
Here is the Java program
http://www.rafb.net/paste/results/4ayJvD89.html
Here is the same program in Python
http://www.rafb.net/paste/results/0duPmI65.html
Thanks,
Richard
- Next message: Bob Showalter: "RE: A very simple example program Comparing Perl, Python and Java"
- Previous message: Mike Donnelly: "Getopt::Long , handles the number zero differently.."
- Next in thread: Bob Showalter: "RE: A very simple example program Comparing Perl, Python and Java"
- Maybe reply: Bob Showalter: "RE: A very simple example program Comparing Perl, Python and Java"
- Reply: JupiterHost.Net: "Re: A very simple example program Comparing Perl, Python and Java"
- Reply: John W. Krahn: "Re: A very simple example program Comparing Perl, Python and Java"
- Maybe reply: Richard Monson-Haefel: "RE: A very simple example program Comparing Perl, Python and Java"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|