Skip to content

Commit

Permalink
Updated pod.
Browse files Browse the repository at this point in the history
  • Loading branch information
Timofey Potapov committed May 14, 2024
1 parent 512a148 commit 6d214d3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
6 changes: 6 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Revision history for e

=================
1.05 - 2024-05-14
=================

Fixed typos in pod.

=================
1.04 - 2024-05-14
=================
Expand Down
25 changes: 22 additions & 3 deletions lib/e.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ e - Unleash the power of e!
=cut

our $VERSION = '1.04';
our $VERSION = '1.05';

=head1 SYNOPSIS
Expand All @@ -46,12 +46,31 @@ Devel::Peek dump a data structure:
Add a trace marker:
perl -Me -e 'dd {'
perl -Me -e 'sub f1 { trace } sub f2 { f1 } f2'
Watch a reference for changes:
perl -Me -e 'my $v = {}; sub f1 { watcg( $v ) } sub f2 { f1; $v->{a} = 1 } f2'
perl -Me -e 'my $v = {}; sub f1 { watch( $v ) } sub f2 { f1; $v->{a} = 1 } f2'
perl -Me -e '
package A {
use e;
my %h = ( aaa => 111 );
watch(\%h);
sub f1 {
$h{b} = 1;
}
sub f2 {
f1();
delete $h{aaa};
}
}
A::f2();
'
Launch the Runtime::Debugger:
Expand Down

0 comments on commit 6d214d3

Please sign in to comment.