XString(3)
πΈ NAME πΈ
Okay so welcome to XString(3), bestie β this is the User Contributed Perl Documentation page for XString: Isolated String helpers from B. Itβs literally giving βstring helpers, but make it their own isolated packageβ energy π
.
β¨ VERSION β¨
version 0.005 β thatβs the current vibe check, no cap.
π SYNOPSIS π
Okay so hereβs the whole group-chat receipts, and yes, copy it exactly:
#!perl
use strict;
use warnings;
use Test::More;
use XString;
use B;
is XString::cstring( q[a'string"with quotes] ), B::cstring( q[a'string"with quotes] ), q["a'string\"with quotes"];
is XString::perlstring( q[a'string"with quotes] ), B::perlstring( q[a'string"with quotes] ), q["a'string\"with quotes"];
done_testing;
π DESCRIPTION π
XString provides the B string helpers in one isolated package. Right now only cstring and perlstring are available β thatβs the whole lineup, no secret menu π«Ά.
π¦ FUNCTIONS π¦
cstring(STR)
Similar to B::cstring; it returns a double-quote-surrounded escaped version of STR which can be used as a string in C source code. So if you need your string to look cute and C-safe, this is the one π₯.
perlstring(STR)
Similar to B::perlstring; it returns a double-quote-surrounded escaped version of STR which can be used as a string in Perl source code. Perl-ready escaping, iconic behavior, periodt β¨.
π AUTHOR π
Nicolas R <atoomic@cpan.org> β yes, thatβs the author, bestie π.
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2018 by cPanel, Inc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Later, bestie π
β this page is from perl v5.42.0, dated 2020-10-21, and itβs XString(3) all the way down π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-XString 0.005-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-XString 0.005-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-XString 0.005-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-XString 0.005-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms