Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

DEBUG && TRACE(@_)

by H4 (Acolyte)
on Oct 08, 2008 at 10:06 UTC ( [id://715961]=perlquestion: print w/replies, xml ) Need Help??

H4 has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks:

While I was trying to understand how Inline::Files works, I found that every function in this file starts with the line

DEBUG && TRACE(@_);

Since 'use strict' is in effect, DEBUG must be a function (or use const), and it must be defined somewhere, or imported from somewhere, but I cannot find it. I tried to define a ::DEBUG or Inline::Files::DEBUG function in my program's BEGIN block but it didn't get called. (Nor did I find the TRACE function...)

Is this some kind of Perlish magic? Or was I unable to find the manpage? (It's neither on perldebug nor perldebtut nor perldebguts.)

Replies are listed 'Best First'.
Re: DEBUG && TRACE(@_)
by JavaFan (Canon) on Oct 08, 2008 at 10:29 UTC
    Inline::Files uses Inline::Files::Virtual which exports DEBUG and TRACE.
      Great! Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://715961]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-25 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found