---
title: "Perl Hooks"
description: "> This file extends [common/hooks.md](../common/hooks.md) with Perl-specific content."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/hooks-28
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:25:13.385Z
license: CC-BY-4.0
attribution: "Perl Hooks — Claudary (https://claudary.paisolsolutions.com/skills/hooks-28)"
---

# Perl Hooks
> This file extends [common/hooks.md](../common/hooks.md) with Perl-specific content.

## Overview

---
paths:
  - "**/*.pl"
  - "**/*.pm"
  - "**/*.t"
  - "**/*.psgi"
  - "**/*.cgi"
---
# Perl Hooks

> This file extends [common/hooks.md](../common/hooks.md) with Perl-specific content.

## PostToolUse Hooks

Configure in `~/.claude/settings.json`:

- **perltidy**: Auto-format `.pl` and `.pm` files after edit
- **perlcritic**: Run lint check after editing `.pm` files

## Warnings

- Warn about `print` in non-script `.pm` files — use `say` or a logging module (e.g., `Log::Any`)

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/hooks-28) · https://claudary.paisolsolutions.com
