[SP-pm] IPC / Data::Dumper

jimmy jimmy.tty at gmail.com
Wed Jul 27 14:56:07 PDT 2011


On Wed, Jul 27, 2011 at 11:40:16AM -0300, Renato Santos wrote:
> Dumper não vai escrever as subs,
> vai ficar assim:
> 
> sub { "dummy" }
> e vai bugar tudo...
Analisando essa declaração de forma isolada à discussão, esquecemos do:

    * $Data::Dumper::Deparse *or* $*OBJ*->Deparse(*[NEWVAL]*)

        Can  be  set  to  a   boolean  value  to  control  whether  code
        references are  turned into perl source  code. If set to  a true
        value,  "B::Deparse" will  be  used  to get  the  source of  the
        code  reference. Using  this option  will force  using the  Perl
        implementation of the dumper, since the fast XSUB implementation
        doesn't support it.

        Caution :  use this option only  if you know that  your coderefs
        will be properly reconstructed by "B::Deparse".

Só usei isso para fins didáticos sobre o %SIG.

[]'s

-- 
"Não manejo bem as palavras
Mas manipulo bem as strings."
------------------------------
 tecnoveneno.blogspot.com


More information about the SaoPaulo-pm mailing list