Problems? Is your data what you think it is? | |
PerlMonks |
Re: System calls from CGI scriptby shmem (Chancellor) |
on Nov 04, 2016 at 23:52 UTC ( [id://1175339]=note: print w/replies, xml ) | Need Help?? |
You could avoid shelling out /bin/sh and a new instance of perl via require:
This way your required script will also run with taint checking, which is always a good thing to do for CGI scripts (++ for the OP for that alone). Some points to be aware of:
This might fit - or not - your requirements; it is just another way to do it (and a safer one IMHO).
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Seekers of Perl Wisdom
|
|