in reply to A Perl vs. Java fight brews
- ready interface to unix system servicesJava 5 has a bit more sophisticated process management, but nothing directly related to unix.
- Open3 to control input and output between existing utility programsYou have this via the Runtime and Process objects.
- CPANIt depends on how you look at CPAN. CPAN as something that provides API to basic needs? Java does it as well. More complex systems and these super algorithms and language changing modules, like WWW:Mechanize, Algorithm::Loops and pugs, no, java doesn't have it.
- associative arraysMap object.
- scoped untyped variablesYou can do some scoping, but not untyped.
- flexible choice of procedural versus OO (ksh is only procedural)You can do non-oo in java, regardless of what the nay-sayers say. Just define all of your methods as static. You still have to refer to them as say ClassName.myStaticProc(...).
- perl -d (debugger - no such thing for ksh)jdb
- perl's regexp engine is better than awk/sed's without needing to shell outjakarta oro can do about anything perl5's regexp's can do, except commenting, execution of code w/i a regexp.
- perl's hashes are more flexible and scopable than formula engine's (Formula Engine provides only a single global hash).dunno what this is
- perl can communicate more effectively with background processes.In what way? You can kill, get the status of and read/write from background processes. Fork 'em off and what not.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A Perl vs. Java fight brews
by Moron (Curate) on Jul 25, 2006 at 10:53 UTC | |
by exussum0 (Vicar) on Jul 25, 2006 at 15:14 UTC | |
by Moron (Curate) on Jul 26, 2006 at 09:19 UTC | |
by exussum0 (Vicar) on Jul 25, 2006 at 23:32 UTC |