NAME
WWW::Noss::Util - Misc. utility functions for noss
USAGE
use WWW::Noss::Util qw(dir resolve_url);
my @files = dir('/');
my $full_url = resolve_url('/pages', 'https://example.com/home');
DESCRIPTION
WWW::Noss::Util is a module that provides various utility functions for noss. This is a private module, please consult the noss manual for user documentation.
SUBROUTINES
Subroutines are not exported automatically.
- @children = dir($dir, [ %param ])
-
Returns list of children files under directory
$dir.%paramis an optional hash of additional parameters.The following are valid fields in
%param:-
Boolean determining whether to include hidden files or not. Defaults to false.
-
- $full_url = resolve_url($url, $from)
-
Resolves URL
$urlfound on the page linked by$from. Retunsundefif the URL could not be resolved.
AUTHOR
Written by Samuel Young, <samyoung12788@gmail.com>.
This project's source can be found on its Codeberg page. Comments and pull requests are welcome!
COPYRIGHT
Copyright (C) 2025 Samuel Young
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.