URI::chrome - Mozilla chrome uri
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,
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
Please report any bugs or feature requests to
email@example.com, 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.
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.