---
name: "B::Showlex"
section: "3pm"
platform: "linux"
package: "perl-5.005-doc"
version: "5.005.03-7.1"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/B::Showlex/3pm"
---

# B::Showlex(3pm)

Show lexical variables used in functions or files

## NAME

B::Showlex - Show lexical variables used in functions or files

## SYNOPSIS

```
        perl -MO=Showlex[,SUBROUTINE] foo.pl
```

## DESCRIPTION

When a subroutine name is provided in OPTIONS, prints the lexical variables used in that subroutine.  Otherwise, prints the file-scope lexicals in the file.

## AUTHOR

Malcolm Beattie, `mbeattie@sable.ox.ac.uk`
