# from Roderich Schupp
# on Wednesday 01 October 2008:

>> engine dependency on Tie/Hash/NamedCapture.pm  ?
>
>Ouch, missed that one. So Tie/Hash/NamedCapture.pm is something like
>Errno.pm, i.e. require'd by the core whenever needed (in the case of
>Errno.pm that means that the program references $!).

I think it is triggered by using '%!'.

  $ perl -MDevel::TraceDeps -e 'unless (open(FH, "/fangorn/spouse")) {
    warn $!{ENOENT} ? "ENOSPOUSE" : "argh";}'

  ...
  -----
  req: Errno.pm
  file: -e
  line: 2

I imagine that something similar would point-out what triggers loading 
of T::H::NamedCapture.

--Eric
-- 
Speak softly and carry a big carrot.
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------

Reply via email to