HTML::LocationWorking with disk to URI file mappings (deprecated: see URI::ToDisk) | |
Download |
HTML::Location Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Adam Kennedy
- Publisher web site:
- http://search.cpan.org/~adamk/
HTML::Location Tags
HTML::Location Description
Working with disk to URI file mappings (deprecated: see URI::ToDisk) HTML::Location is a Perl module for working with disk to URI file mappings (deprecated: see URI::ToDisk).STATUSAs correctly noted by several users, HTML::Location is a really stupid name for this module. I apologise, I was new to the whole CPAN game at the time I first wrote it.This module has been relocated to URI::ToDisk. This module will remain indefinately for back-compatibility, but should otherwise be considered deprecated.Please convert your code to the otherwise identical URI::ToDisk at your leisure.SYNOPSIS # We have a directory on disk that is accessible via a web server my $authors = HTML::Location->new( '/var/www/AUTHORS', 'http://ali.as/AUTHORS' ); # We know where a particular generated file needs to go my $about = $authors->catfile( 'A', 'AD', 'ADAMK', 'about.html' ); # Save the file to disk my $file = $about->path; open( FILE, ">$file" ) or die "open: $!"; print FILE, $content; close FILE; # Show the user where to see the file my $uri = $about->uri; print "Author information is at $uri ";In several process relating to working with the web, we may need to keep track of an area of disk that maps to a particular URL. From this location, we should be able to derived both a filesystem path and URL for any given directory or file under this location that we might need to work with. Requirements: · Perl
HTML::Location Related Software