Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: the -x command line parameter

by BUU (Prior)
on Aug 08, 2004 at 20:08 UTC ( [id://381095]=note: print w/replies, xml ) Need Help??


in reply to the -x command line parameter

Another useful and actual real world example is <Perl></Perl> sections in the Apache httpd.conf file. You can simply do:
randomApacheVar = 1 var2=3 <Perl> #!perl my $perl = 'code'; some('more','code'); #etc __END__ </Perl>
And easily check if it compiles, or even what it does by doing perl -x httpd.conf

Replies are listed 'Best First'.
Re^2: the -x command line parameter
by tilly (Archbishop) on Aug 09, 2004 at 05:16 UTC
    You can do even better than that. I've seen the above technique used to create synchronized httpd.conf files, so that information that in one is maintained through mod_perl in the next has the Perl expanded out so that it can be used with a non-mod_perl Apache server. (This for a reverse proxy config, the non-mod_perl server handles all of the static requests and forwards what it needs to to the mod_perl servers.)
      could you elaborate on "so that information that in one is maintained through mod_perl in the next has the Perl expanded out "? thanks

Log In?
Username:
Password:

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

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

    No recent polls found