Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re2: Inlining method/function calls?

by dragonchild (Archbishop)
on Jul 28, 2003 at 15:54 UTC ( [id://278467]=note: print w/replies, xml ) Need Help??


in reply to Re: Inlining method/function calls?
in thread Inlining method/function calls?

That is very cool! Right after I ran that snippet, I looked in 3rd Camel to see what it says, but it's quite sparse in what you can do. What is possible? Where could I go for more info, especially examples ...

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Replies are listed 'Best First'.
Re: Re2: Inlining method/function calls?
by Zaxo (Archbishop) on Jul 28, 2003 at 18:13 UTC

    The -P flag turns loose the C preprocessor on your source before perl ever sees it. Its behavior is determined by the C standard, at least for the portable parts. The handiest source of information is probably a C primer.

    In short, the C preprocessor makes direct textual substitution. with some logic available. I've never needed it for perl, but potentially useful constructs include,

    • #include "filename" - inclusion of source from another file.
    • #define foo some string or other - substitution macro definition
    • #if, #elseif, #else, and friends allow for conditional inclusion of source.
    None of this is really necessary to perl.

    After Compline,
    Zaxo

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-03-28 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found