---
name: "DBIx::Class::CDBICompat::ColumnsAsHash"
section: "3pm"
platform: "linux"
package: "libdbix-class-perl"
version: "0.082844-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/DBIx::Class::CDBICompat::ColumnsAsHash"
---

# DBIx::Class::CDBICompat::ColumnsAsHash(3pm)

Emulates the behavior of Class::DBI where the object can be accessed as a hash of columns.

## NAME

DBIx::Class::CDBICompat::ColumnsAsHash - Emulates the behavior of Class::DBI where the object can be accessed as a hash of columns.

## SYNOPSIS

See DBIx::Class::CDBICompat for usage directions.

## DESCRIPTION

Emulates the *undocumented* behavior of Class::DBI where the object can be accessed as a hash of columns.  This is often used as a performance hack.

```
    my $column = $result->{column};
```

### Differences from Class::DBI

If `"DBIC_CDBICOMPAT_HASH_WARN"` is true it will warn when a column is accessed as a hash key.

## FURTHER QUESTIONS?

Check the list of additional DBIC resources.

## COPYRIGHT AND LICENSE

This module is free software copyright by the DBIx::Class (DBIC) authors. You can redistribute it and/or modify it under the same terms as the DBIx::Class library.
