URI::chrome - Mozilla chrome uri
version 0.01
use URI; use URI::chrome; my $uri = URI->new("chrome://communicator/content/bookmarks/bookmarksManager.xul"); local $\ = "\n"; print $uri->package_name; # communicator print $uri->part; # content/bookmarks print $uri->file_name; # bookmarksManager.xul
The basic syntax of a chrome URI is as follows,
chrome://<package_name>/<part>/<file_name>
The elements of chrome URI detail is as follows,
The "package_name" is the package name. For example, "browser", "messenger" or "communicator".
The "part" is simillar to path of http URI. It's string is beggining of "content", "skin" or "locale". For example, "content", "content/bookmarks".
The "file_name" is the file name.
More detail, please see http://developer.mozilla.org/en/docs/XUL_Tutorial:The_Chrome_URL
Getter/Setter of package_name
Getter/Setter of part
Getter/Setter of file_name
Toru Yamaguchi, <zigorou@cpan.org>
<zigorou@cpan.org>
Please report any bugs or feature requests to bug-uri-chrome@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-uri-chrome@rt.cpan.org
Copyright 2007 Toru Yamaguchi, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install URI::chrome, copy and paste the appropriate command in to your terminal.
cpanm
cpanm URI::chrome
CPAN shell
perl -MCPAN -e shell install URI::chrome
For more information on module installation, please visit the detailed CPAN module installation guide.