HTMLCOPY(1p)
π¦ HTMLCOPY(1p) β the girlies' guide to not breaking ur links π
User Contributed Perl Documentation β¨ (yes bestie, it's a Perl joint, we love her)
β¨ NAME β¨
htmlcopy β copy a HTML file without breaking links. π«Ά no cap, that's the whole gig.
πΈ SYNOPSIS πΈ
htmlcopy [OPTION] {SOURCE | -} [DESTINATION]
π DESCRIPTION π
okay so htmlcopy copies a source HTML file into DESTINATION. and here's the part that eats: if that HTML file has links to images, other HTML files, javascripts and cascading style sheets, htmlcopy is out here changing the link paths inside the HTML file so that the link destinations stay correct. it's giving "moved apartments but kept all the group chats." iconic. π
when DESTINATION is omitted, the modified HTML gets written to standard output. and also, it is assumed that the output location is the current working directory. so like, heads up on that. π
now listen β SOURCE and DESTINATION should be cleaned-up paths. periodt. for example, a verbose path like /aa/bb/../cc may cause converting links wrongly. π not the links being converted wrong. this is a limitation of the URI module's rel method, so it's not us being messy, it's just how it is. to clean up paths, Cwd::realpath is useful. bestie tip, fr fr. β¨
π OPTIONS π
-h,--helpβ prints a brief help message and exits. quick lil vibe check, then she's gone. π-m,--manβ prints the manual page and exits. (you are literally here rn. main character behavior.) ππ
π AUTHOR π
Tetsuro KURITA <tkurita@mac.com> π«Ά
and that's the whole page, bestie!! this gem is running on perl v5.34.0 and the date on the tin is 2022-06-14. go forth and copy ur HTML files without breaking a single link. slay. πβ¨π¦π
π¦ where this page comes from
- debian bookworm: libhtml-copy-perl 1.31-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libhtml-copy-perl 1.31-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-copy-perl 1.31-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms