Data::Undump?

Tips

$ perl -f -MO=Concise -e " my$f=[ 1, [ 2, [ 3 ] ] ]; my$g={ a => { b=> + { c=> {}, }, }, }; " s <@> leave[1 ref] vKP/REFC ->(end) 1 <0> enter ->2 2 <;> nextstate(main 1 -e:1) v:{ ->3 d <2> sassign vKS/2 ->e b <@> anonlist sK*/1 ->c 3 <0> pushmark s ->4 4 <$> const[IV 1] s ->5 a <@> anonlist sK*/1 ->b 5 <0> pushmark s ->6 6 <$> const[IV 2] s ->7 9 <@> anonlist sK*/1 ->a 7 <0> pushmark s ->8 8 <$> const[IV 3] s ->9 c <0> padsv[$f:1,3] sRM*/LVINTRO ->d e <;> nextstate(main 2 -e:1) v:{ ->f r <2> sassign vKS/2 ->s p <@> anonhash sK*/1 ->q f <0> pushmark s ->g g <$> const[PV "a"] s/BARE ->h o <@> anonhash sK*/1 ->p h <0> pushmark s ->i i <$> const[PV "b"] s/BARE ->j n <@> anonhash sK*/1 ->o j <0> pushmark s ->k k <$> const[PV "c"] s/BARE ->l m <@> anonhash sK* ->n l <0> pushmark s ->m q <0> padsv[$g:2,3] sRM*/LVINTRO ->r -e syntax OK

I think safest approach is start denying stuff from defaults until it stops working, then dump the opcodes remaining

My try at the other way didn't work (  qw/ sassign  anonhash pushmark const anonlist nextstate enter list rv2cv / is not enough)


In reply to Re: Safe.pm: Which parameter for permit_only? by Anonymous Monk
in thread Safe.pm: Which parameter for permit_only? by karlgoethebier

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.