WWW(3)


NAME

   WWW - World Wide Web Package

SYNOPSIS

   extract_description( FILE )
   extract_meta( FILE, NAME )
   hyperlink( LIST )

DESCRIPTION

   This  package  provides  a  utility functions for the World Wide Web to
   extract descriptions of or meta information from files,  and  hyperlink
   text.

SUBROUTINES

   The following Perl subroutines are defined and available:

   extract_description( FILE )
          Extracts  a description from an HTML or plain text file given by
          the FILE name; FILE should  be  an  absolute  path.   The  first
          $description::chars (default: 2048) characters are read.  If the
          file ends in one of the extensions htm, html, or  shtml,  it  is
          presumed  to  be  an  HTML  file; if the file ends in txt, it is
          presumed to be a plain text  file.   Other  extensions  are  not
          recognized and no description is returned for them.

          For   HTML   files,   first,   if   a  <META  NAME="description"
          CONTENT="..."> or a <META  NAME="DC.description"  CONTENT="...">
          (Dublin  Core) element is found, then the words specified as the
          value of the CONTENT attribute is returned as the description.

          Otherwise, all HTML comments, text  between  <SCRIPT>,  <STYLE>,
          and  <TITLE>  tags,  and  all  other HTML tags are stripped.  If
          <AREA ... ALT="..."> or <IMG ... ALT="..."> elements are  found,
          then  the words specified as the value of the ALT attributes are
          extracted.

          Finally,  for  either  HTML  or  plain  text  files,   at   most
          $description::words (default: 50) are returned.

   extract_meta( FILE, NAME )
          Extracts  the value of the CONTENT attribute from a META element
          having the given NAME attribute from an HTML file given  by  the
          FILE  name;  FILE should be an absolute path.  The file must end
          in one of the extensions htm, html, or shtml to be considered an
          HTML   file.   The  first  $description::chars  (default:  2048)
          characters  are  read.   The  characters  are   cached   between
          consecutive calls using the same filename.

   hyperlink( LIST )
          Adds  hyperlinks  to  strings:  that  is  strings  that  contain
          substrings that are valid URLs (according to RFC 1630) have  the
          appropriate  HTML tags ``wrapped'' around them so that they will
          be selectable when displayed in a  browser.   The  ftp,  gopher,
          http, https, mailto, news, telnet, and wais URLs are recognized.
          Example:

             Read all about it at
             http://www.usatoday.com/

        becomes:

             Read all about it at
             <A HREF="http://www.usatoday.com/">http://www.usatoday.com/</A>

SEE ALSO

   perl(1)

   Tim Berners-Lee.  ``Universal Resource Identifiers  in  WWW,''  Request
   for  Comments  1630,  Network Working Group of the Internet Engineering
   Task Force, June 1994.

   Tim Berners-Lee, Larry Masinter, and Mark McCahill.  ``Uniform Resource
   Locators  (URL),''  Request  for  Comments 1738, Network Working Group,
   1994.

   Dave Raggett, Arnaud Le Hors,  and  Ian  Jacobs.   ``Notes  on  helping
   search  engines index your Web site,'' HTML 4.0 Specification, Appendix
   B: Performance,  Implementation,  and  Design  Notes,  World  Wide  Web
   Consortium, April 1998.

   --.   ``Objects,  Images, and Applets: How to specify alternate text,''
   HTML 4.0 Specification, 13.8, World Wide Web Consortium, April 1998.

   Dublin  Core  Directorate.   ``The  Dublin  Core:  A   Simple   Content
   Description Model for Electronic Resources.''

   Larry  Wall,  et al.  Programming Perl, 3rd ed., O'Reilly & Associates,
   Inc., Sebastopol, CA, 2000.

AUTHOR

   Paul J. Lucas <pauljlucas@mac.com>

WWW                            February 12, 2000                        WWW(3)





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.