more useful options | |
PerlMonks |
Safe.pm: Which parameter for permit_only?by karlgoethebier (Abbot) |
on Jun 13, 2014 at 11:08 UTC ( [id://1089808]=perlquestion: print w/replies, xml ) | Need Help?? |
karlgoethebier has asked for the wisdom of the Perl Monks concerning the following question: Hi all, i use the cc tool that comes with Astaro firewalls to get some information about the status of several tunnels (cc get_ipsec_status). The output is pure Perl, like this:
For some paranoid reasons, i considered using Safe to read this output:
This works - if i uncomment qx() this gets trapped as one can see in the output of my script. Safe uses per default the :default tag from Opcode which is a shorthand for :base_core :base_mem :base_loop :base_orig :base_thread. Too much. What parameter must i pass to permit_only only for reading this data structure? I couldn't figure out this by reading the Opcode manpage :-( Update: First, thanks to all for answering. I wasn't in office this week due to a little illness so my answer is a bit late, sorry. But my proxy fiddled out this by Trial-And-Error:
Strange enough. It seems like this works nice with v5.16.3 but please see what happens:
Very bad... seems like it depends on the version of Perl... Thank you very much for any hint and best regards, Karl «The Crux of the Biscuit is the Apostrophe»
Back to
Seekers of Perl Wisdom
|
|