in reply to How to do a "perl -c(w)" check instead of an "eval $string" on a code string

Or can I "safely" eval it
Beware that even "perl -c" will run "BEGIN" and "use" items, by design.
  • Comment on Re: How to do a "perl -c(w)" check instead of an "eval $string" on a code string

Replies are listed 'Best First'.
Re^2: How to do a "perl -c(w)" check instead of an "eval $string" on a code string
by Your Mother (Archbishop) on Jan 20, 2009 at 01:01 UTC

    Yeppers. I was thinking about use but I tend to forget about BEGIN; and INIT and CHECK for that matter. And I discover this minute that there is a UNITCHECK at all... Time to do some (re)reading.