XML and Perl: Embedding XML in HTML | 4 | WebReference

XML and Perl: Embedding XML in HTML | 4

XML and Perl::Resources

If XML is the technology that gives Java something to do, then Perl is the language that will make XML do something useful. After all, it's the language that makes hard things easy, and the impossible, possible. It's also the best text processing language I've ever worked with.

The development of XML modules for Perl has been progressing nicely over the past year. There are now several useful modules available at the Comprehensive Perl Archive Network. A good information reference on Perl in general can be found at http://www.perl.com. A Perl-XML mailing list is also available. To join, send an email to Lyris@ActiveState.com with the message: SUBSCRIBE Perl-XML.

Because XML requires strict adherence to its specification, we will not be using any of the XML modules for Perl in this article. We can, however, use Perl regular expressions to extract information from the tags.

XML Resources

Requirements

You will need the following Perl modules for the Perl code in this article (available at CPAN): You will also need write access to a Web server directory that allows CGI scripts to be executed. To run the scripts on your Web server:
  1. Save the Perl script to an executable directory on your Web server
  2. If the Web server runs on a *nix variant, make sure the script is readable and executable, i.e. chmod 755 xml-fetch.pl
  3. Modify the first line of the script so that the path points to the location of Perl on your system (*nix only), i.e. #!/usr/bin/perl

http://www.internet.com

Produced by Jonathan Eisenzopf and
Created: Feb. 14, 1999
Revised: Feb. 17, 1999

URL: http://www.webreference.com/perl/tutorial1/