Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: When not to use taint modeby shmem (Chancellor) |
on Jun 14, 2021 at 16:47 UTC ( [id://11133855]=note: print w/replies, xml ) | Need Help?? |
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'
In Section
Seekers of Perl Wisdom
|
|