WWW::Noss::Util − Misc. utility functions for noss
use
WWW::Noss::Util qw(dir resolve_url);
my @files = dir('/');
my $full_url = resolve_url('/pages',
'https://example.com/home');
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 are
not exported automatically.
@children = dir($dir, [ %param ])
Returns list of children files under directory $dir. %param is an optional hash of additional parameters.
The following
are valid fields in %param:
hidden
Boolean determining whether to include hidden files or not. Defaults to false.
$full_url = resolve_url($url, $from)
Resolves URL $url found on the page linked by $from. Retuns "undef" if the URL could not be resolved.
Written by Samuel Young, <[email protected]>.
This project's source can be found on its Codeberg page <https://codeberg.org/1-1sam/noss.git>. Comments and pull requests are welcome!
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.
noss