---
name: "Test2::Compare::String"
section: "3perl"
platform: "linux"
package: "perl"
version: "5.44.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Test2::Compare::String/3perl"
---

# Test2::Compare::String(3perl)

Compare two values as strings

## NAME

Test2::Compare::String - Compare two values as strings

## DESCRIPTION

This is used to compare two items after they are stringified. You can also check that two strings are not equal.

**Note**: This will fail if the received value is undefined, it must be defined.

## SOURCE

The source code repository for Test2-Suite can be found at *https://github.com/Test-More/test-more/*.

## MAINTAINERS

- Chad Granum \<exodist@cpan.org\>

  ## AUTHORS

- Chad Granum \<exodist@cpan.org\>

  ## COPYRIGHT

Copyright Chad Granum \<exodist@cpan.org\>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See *http://dev.perl.org/licenses/*
