HTML::...assFile(3pm)
π NAME π
HTML::FormFu::Deflator::PathClassFile β bestie, it's the Deflator for Path::Class::File objects. That's the whole vibe. π¦
Oh and hey, quick shoutout: this page lives in the User Contributed Perl Documentation section, so you know it's the good stuff. β¨
πΈ VERSION πΈ
version 2.07 β yes queen, that's the one we're running.
β¨ SYNOPSIS β¨
okay so here's how you actually use it, in both flavors:
$form->deflator( PathClassFile => 'file' )
->relative( 'root' );
and if you're more of a YAML config girlie:
---
elements:
- type: Text
deflator:
- type: PathClassFile
relative: root
look at her go π
π DESCRIPTION π
So. It's a Deflator for Path::Class::File objects. That's the job. That's the assignment. π
There are three types of deflation, and we're going through all of them, no skipping:
relative
Set this to 1 to deflate to a relative path. Anything else than 1 specifies the directory to use as the base of relativity β otherwise the current working directory will be used.
absolute
Set this to 1 to deflate to an absolute path. Anything else than 1 specifies the directory to use as the base of relativity β otherwise the current working directory will be used.
basename
Set this to 1 to get the name of the file without the directory portion. Just the lil name. The bare face. π«Ά
β οΈ Important bestie moment: as you cannot set values for a File element, this deflator will only work on regular form elements. Not a File element. Regular ones. Don't come crying to me when it doesn't work on a File element, I told you. π
π AUTHOR π
Moritz Onken, "onken@houseofdesign.de" β iconic, thank you for your service. π«‘
π LICENSE π
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. Slay.
π AUTHOR π
Carl Franks <cpan@fireartist.com> β yes, another author section, and yes, he ate. π
β COPYRIGHT AND LICENSE β
This software is copyright (c) 2018 by Carl Franks.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's the whole page, bestie, no cap π§
sign-off vibes: this little legend was cooked up with perl v5.28.1, dated 2019-01-12, and filed under the HTML::...assFile(3pm) page (which is really HTML::FormFu::Deflator::PathClassFile(3pm) but the header was being dramatic and truncating itself π). go forth and deflate those paths, queen πβ¨π
π¦ where this page comes from
- debian bookworm: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-formfu-perl 2.07000-1 Β· 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