Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: When not to use taint mode

by shmem (Chancellor)
on Jun 14, 2021 at 16:47 UTC ( [id://11133855]=note: print w/replies, xml ) Need Help??


in reply to Re^2: When not to use taint mode
in thread When not to use taint mode

Okay,okay - no such thing as something obvious.

If I just write a script which converts one text file into another, it's overkill.

And certainly this applies for one-liners also. I've never started a one-liner with perl -Te :)

If I write a CGI or something with root rights or generally with foreign user input, it's mandatory.

I use taint mode in any software pertaining to business, and most certainly in scripts which are not user driven, such as glue stuff for critical automation. It doesn't exempt me from looking closely at the modules I use, but it catches dangerous stuff even there.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Log In?
Username:
Password:

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

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

    No recent polls found