ExtUtils::Constant::Utils(3pm) Perl Programmers Reference Guide ExtUtils::Constant::Utils(3pm)

# [NAME](#NAME)

ExtUtils::Constant::Utils - helper functions for ExtUtils::Constant

# [SYNOPSIS](#SYNOPSIS)

```
    use ExtUtils::Constant::Utils qw (C_stringify);
    $C_code = C_stringify $stuff;
```

# [DESCRIPTION](#DESCRIPTION)

ExtUtils::Constant::Utils packages up utility subroutines used by ExtUtils::Constant, ExtUtils::Constant::Base and derived classes. All its functions are explicitly exportable.

# [USAGE](#USAGE)

[C\_stringify NAME](#C_stringify)

A function which returns a 7 bit ASCII correctly \\ escaped version of the string passed suitable for C's "" or ''. It will die if passed Unicode characters.

[perl\_stringify NAME](#perl_stringify)

A function which returns a 7 bit ASCII correctly \\ escaped version of the string passed suitable for a perl "" string.

# [AUTHOR](#AUTHOR)

Nicholas Clark &lt;nick@ccl4.org&gt; based on the code in "h2xs" by Larry Wall and others

2026-10-27 perl v5.44.0

---

Document: ExtUtils::Constant::Utils(3pm) from perl 5.44.0-r4 (Chainguard OS)
Source: https://github.com/Perl/perl5.git
