1HCT::Util(3) User Contributed Perl Documentation HCT::Util(3)
2
3
4
6 HCT::Util - Generic utility functions for HCT.
7
9 This package contains various utility functions which do not belong
10 anywhere else.
11
13 This package provides several types of routines:
14
15 Strings
16 reduce_string (STRING [, REQUIRED_LENGTH, [, REPLACEMENT]])
17 Reduces string from the center and substitutes this place.
18 REQUIRED_LENGTH means, what length should have incoming string
19 after substitution. By default the replacement part equal to '~'.
20
21 print reduce_string ('operator_precedence_sub', 11);
22 # the result: opera~e_sub
23
24
25
26perl v5.30.0 2019-07-25 HCT::Util(3)