Copyright (C) 2000-2012 |
Manpages URI::HeuristicSection: User Contributed Perl Documentation (3)Updated: 2001-01-09 Index Return to Main Contents NAMEuf_uristr - Expand URI using heuristicsSYNOPSISuse URI::Heuristic qw(uf_uristr); $u = uf_uristr("perl"); # http://www.perl.com $u = uf_uristr("www.sol.no/sol"); # http://www.sol.no/sol $u = uf_uristr("aas"); # http://www.aas.no $u = uf_uristr("ftp.funet.fi"); # ftp://ftp.funet.fi $u = uf_uristr("/etc/passwd"); # file:/etc/passwd DESCRIPTIONThis module provides functions that expand strings into real absolute URIs using some builtin heuristics. Strings that already represent absolute URIs (i.e. start with a "scheme:" part) are never modified and are returned unchanged. The main use of these functions are to allow abbreviated URIs similar to what many web browsers allow for URIs typed in by the user.The following functions are provided:
ENVIRONMENTIf the hostname portion of a URI does not contain any dots, then certain qualified guesses will be made. These guesses are governed be the following two environment variables.
COPYRIGHTCopyright 1997-1998, Gisle AasThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
IndexThis document was created by man2html, using the manual pages. Time: 20:15:09 GMT, April 19, 2024 |