Debian Codegraph @

lib/Dancer2/Core.pm

raw
1 package Dancer2::Core;
2 # ABSTRACT: Core libraries for Dancer2 2.0
3 $Dancer2::Core::VERSION = '2.2.2';
4 use strict;
5 use warnings;
6
7 sub camelize {
8 my ($value) = @_;
9
10 my $camelized = '';
11 for my $word ( split /_/, $value ) {
12 $camelized .= ucfirst($word);
13 }
14 return $camelized;
15 }
16
17
18 1;
19
20 __END__
21
22 =pod
23
24 =encoding UTF-8
25
26 =head1 NAME
27
28 Dancer2::Core - Core libraries for Dancer2 2.0
29
30 =head1 VERSION
31
32 version 2.2.2
33
34 =head1 FUNCTIONS
35
36 =head2 camelize
37
38 Camelize a underscore-separated-string.
39
40 =head1 AUTHOR
41
42 Dancer Core Developers
43
44 =head1 COPYRIGHT AND LICENSE
45
46 This software is copyright (c) 2026 by Alexis Sukrieh.
47
48 This is free software; you can redistribute it and/or modify it under
49 the same terms as the Perl 5 programming language system itself.
50
51 =cut