spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / perl / tutorial / 1

XML and Perl::Resources

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

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):
  • LWP
  • CGI
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

home / experts / perl / tutorial / 1

http://www.internet.com

Produced by Jonathan Eisenzopf and

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business


Created: Feb. 14, 1999
Revised: Feb. 17, 1999

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