source: trunk/essentials/dev-lang/perl/jpl/docs/Tutorial.pod@ 3397

Last change on this file since 3397 was 3181, checked in by bird, 19 years ago

perl 5.8.8

File size: 25.0 KB
Line 
1=head1 NAME
2
3Tutorial - Perl and Java
4
5=head1 SYNOPSIS
6
7Java and Perl have different strengths and complement each other well.
8
9You can connect them at runtime with tools such as JPL, PJC, or
10ActiveX. In theory, you can convert Perl to Java bytecode, and
11vice-versa.
12
13=head2 Note:
14
15Not actually a conversion.
16
17At this stage, we are generating Java opcodes by walking Perl's syntax
18tree. This is very different from converting Perl to Java. It's a lot
19easier!
20
21=head1 1.1 Perl and Java, Compared
22
23Perl offers rich text processing features, high-level network APIs,
24excellent database integration, and a centralized repository of
25reusable code:
26
27=over 4
28
29=item *
30
31Regular expression engine is a powerful sub language that can perform
32complex text manipulations and extract data.
33
34=item *
35
36Packages such as libwww-perl (LWP) and libnet are powerful, high-level
37interfaces to network functionality.
38
39=item *
40
41The Perl DBI is an interface to SQL data sources.
42
43=item *
44
45CPAN provides a centralized, organized archive of reusable code.
46
47=back
48
49Java has a powerful graphical API, has numerous embedded
50implementations, excellent database integration, but no single
51recognized repository of reusable code.
52
53=over 4
54
55=item *
56