Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: is it safe to use File::Slurp?

by Limbic~Region (Chancellor)
on Jun 16, 2005 at 22:59 UTC ( #467489=note: print w/replies, xml ) Need Help??


in reply to is it safe to use File::Slurp?

kyoshu,
I meant to respond to this earlier but I got busy and assumed someone would say the same thing anyway. Since you have a hardcoded file name and aren't using user data to construct it, you are more safe than you would have been otherwise. It is up to you to figure out if writing/appending to a file is safe or not.

In otherwords, if the file they are writing to is executed then it is very dangerous. This doesn't have anything to do with File::Slurp though. There are a myriad of reasons it might be dangerous to allow the write without checking it first but that's for you to decide. If you want to tell us how the data that is written to the file is used, we might be able to list all kinds of evil things you might want to check for.

Cheers - L~R

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2021-04-12 06:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?