Dancer2::Core::DSL(3)
β¨ NAME β¨
Dancer2::Core::DSL β it's Dancer2's Domain Specific Language (DSL), bestie π it's literally the little toolbox of functions that makes writing Dancer2 apps feel like texting your group chat instead of, idk, writing Perl like it's 1998.
π VERSION π
This is version 2.2.1 β¨
π FUNCTIONS π
πΈ setting
Okay so this one lets you define settings and access them β same function, two moods, very versatile of it π«Ά
Define a single one:
setting('foo' => 42);
Define a whole little pile at once:
setting('foo' => 42, 'bar' => 43);
And then go get one back later:
my $foo=setting('foo');
And here's the tea β β if settings were defined, it returns the number of settings. Not the value, the count. iykyk.
π¦ set ()
Lowkey just an alias for setting β same energy, shorter name, main character typography β¨
set('foo' => '42');
my $port=set('port');
Not me pointing out thatsetdoes exactly whatsettingdoes β it's the same function wearing a different outfit π so use whichever one vibes with your codebase.
π SEE ALSO π
- <http://advent.perldancer.org/2010/18> β go read it, it's giving lore π§
π AUTHOR π
Dancer Core Developers π (the collective, the icons, the ones who did that)
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2026 by Alexis Sukrieh.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. No cap, go wild, just keep the same terms π«Ά
And that's the whole page, bestie β written for perl v5.42.3, dated 2026-09-20, and honestly? Obsessed. Slay, stay hydrated, and go define some settings πβ¨
π¦ where this page comes from
- fedora 44: perl-Dancer2 2.2.1-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms