Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: _DATA_ in File::MMagic breaks mod_perl scripts?

by larsen (Parson)
on Nov 15, 2006 at 12:05 UTC ( #584140=note: print w/ replies, xml ) Need Help??


in reply to Re: _DATA_ in File::MMagic breaks mod_perl scripts?
in thread _DATA_ in File::MMagic breaks mod_perl scripts?

If you want to use the module under mod_perl environment, you'll need to divide the module into module part and magic entry file part, and use the magic file explicitly. Built-in magic entry does not work correctly under mod_perl.


This doesn't sound clear to me, since I thought the whole problem with File::MMagic was about its __DATA__ section. But, as explained in paragraph 6.6 of "Practical mod_perl", this problem should bite only when the __DATA__ is in a script, and not in a module. So, why File::MMagic can't work with mod_perl?

cheers,
larsen


Comment on Re^2: _DATA_ in File::MMagic breaks mod_perl scripts?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2014-10-22 01:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (112 votes), past polls