Test::...r::Util(3pm)
β¨ NAME β¨
Test::BDD::Cucumber::Util β some functions used throughout the code π
Like, it's literally the little helper drawer of the Test::BDD::Cucumber kitchen, bestie. The manual page header calls it Test::...r::Util(3pm) because someone was feeling mysterious, but it's the same thing, promise. π«Ά
πΈ VERSION πΈ
version 0.87 β she's at 0.87, periodt. π
π¦ DESCRIPTION π¦
Some functions used throughout the code. β¨
That's it. That's the whole description. Lowkey iconic of her to not over-explain. The functions live in here, they get used all over the place, and the docs are keeping it cute and brief. π
π FUNCTIONS π
π bs_quote
π bs_unquote
bs_quote() "makes safe" strings with backslashed characters in it, so other operations can be done on them. bs_unquote goes the other way. π―
So like β one of them wraps the risky stuff up so nothing messy happens while you're doing other operations on the string, and the other one unwraps it right back to normal. They're a duo. Main character energy, both of them. π
Here's the whole vibe in code:
$string = "foo \<bar\> <baz>";
$string = bs_quote( $string );
$string =~ s/<([^>]+)>/"$1"/g;
$string = bs_unquote( $string );
$string eq 'foo <bar> "baz"';
Not me reading that and going ohhh she's clever π β quote it, do your little s/// thing on it safely, unquote it, and boom, you land on 'foo <bar> "baz"'. Chef's kiss. π₯
π AUTHOR π
Peter Sergeant "pete@clueball.com" π
π LICENSE π
Copyright 2019-2023, Erik Huelsmann
Copyright 2011-2019, Peter Sergeant; Licensed under the same terms as Perl
So that's two copyright lines, both of them important, both of them here, no skipping. π
okay bestie that's the whole page!! π¦β¨ This little cutie came from version 0.87, documented for perl v5.40.1 on 2025-05-29, so if you're quoting and unquoting in your sleep now, that's between you and your terminal. π
π
π¦ where this page comes from
- debian trixie: libtest-bdd-cucumber-perl 0.87-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtest-bdd-cucumber-perl 0.87-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtest-bdd-cucumber-perl 0.87-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