Scatole Nere

1,233 views

Published on

Lightning talk showing a couple of Perl debugging techniques

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,233
On SlideShare
0
From Embeds
0
Number of Embeds
34
Actions
Shares
0
Downloads
12
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Scatole Nere

  1. 1. Scatole nere
  2. 2.
  3. 3. ARR!!! ☠
  4. 4. sub foo
  5. 5. use Foo; sub foo ... foo();
  6. 6. { no strict; no warnings; *{ quot;Foo::fooquot; } = sub { print quot;arrrr!nquot;; } }
  7. 7. $foo_instance->foo();
  8. 8. sub foo { my $this = shift; ... }
  9. 9. foo( $foo_instance );
  10. 10. Hook::LexWrap
  11. 11. use Foo; use Hook::LexWrap; wrap Foo::foo, pre => sub { print quot;Ora chiamo foo...nquot; } , post => sub { print quot;Ho appena chiamato foo().nquot; };
  12. 12. { wrap Foo::foo, pre => sub { print quot;Ora chiamo foo...nquot; } , post => sub { print quot;Ho appena chiamato foo().nquot; }; }
  13. 13.

×