Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Do you follow millions of lemmings jumping of the cliff just because "everyone's doin' it"?

I do not think that using an unlimited Perl parser as a configuration file parser is a good idea. On properly administrated Unix systems, the critical configuration files of CPAN and CPANPLUS should be writeable only for root. So if one can manipulate those files, perl and CPAN/CPANPLUS are your least problem.

On a typical Windows system with, for example, Strawberry Perl, EVERY user including the guest account can change the configuration files.

JSON, classic INI files, YAML, and even XML do not have this security problem. A malicious user can modify those files, make the application break, but he will not be able to run arbitary code (unless there's another bug in the application or one of the libraries used).


Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

In reply to Re^4: how to read conf file in perl script by afoken
in thread how to read conf file in perl script by hardikv

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-15 03:00 GMT
Find Nodes?
    Voting Booth?

    No recent polls found