Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

XString

Name XString
Version 0.005
Located at /usr/lib/x86_64-linux-gnu/perl5/5.34
File /usr/lib/x86_64-linux-gnu/perl5/5.34/XString.pm
Is Core No
Search CPAN for this module XString
Documentation XString
Module Details XString


NAME

XString - Isolated String helpers from B


VERSION

version 0.005


SYNOPSIS

 #!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.


FUNCTIONS

cstring(STR)

Similar to B::cstring; Returns a double-quote-surrounded escaped version of STR which can be used as a string in C source code.

perlstring(STR)

Similar to B::perlstring; Returns a double-quote-surrounded escaped version of STR which can be used as a string in Perl source code.


AUTHOR

Nicolas R <atoomic@cpan.org>


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.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026