in reply to How to check if a function exists within a package?
This avoids ambiguity issues with using the ampersand.perl -e ' package Foo; sub bar{42}; package main; print defined *Foo::bar{CODE}' 1
print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to check if a function exists within a package?
by Anonymous Monk on Jan 22, 2009 at 18:16 UTC |