forked from schacon/perl
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add enable/disable commands for breakpoints in perl -d
- Loading branch information
Showing
8 changed files
with
291 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package EnableModule; | ||
|
||
use strict; | ||
use warnings; | ||
|
||
sub set_x | ||
{ | ||
my $x_ref = shift; | ||
|
||
${$x_ref} .= "TwoHundred"; | ||
|
||
my $x = ${$x_ref}; | ||
|
||
my $t = $x; | ||
$t .= "Foo"; | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/perl | ||
my $x = "One"; | ||
my $dummy = 0; | ||
|
||
$x = "FirstVal"; | ||
|
||
$dummy++; | ||
|
||
$x = "SecondVal"; | ||
|
||
$dummy++; | ||
|
||
$x = "ThirdVal"; | ||
|
||
$dummy++; | ||
|
||
$x = "FourthVal"; | ||
|
||
$dummy++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/perl | ||
my $x = "One"; | ||
|
||
$x = "FirstVal"; | ||
|
||
set_x(); | ||
|
||
$x = "SecondVal"; | ||
|
||
set_x(); | ||
|
||
$x = "ThirdVal"; | ||
|
||
set_x(); | ||
|
||
$x = "FourthVal"; | ||
|
||
set_x(); | ||
|
||
sub set_x | ||
{ | ||
$x .= "OneHundred"; | ||
|
||
my $t = $x; | ||
$t .= "Foo"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/perl | ||
|
||
use EnableModule; | ||
my $x = "One"; | ||
|
||
$x = "FirstVal"; | ||
|
||
EnableModule::set_x(\$x); | ||
|
||
$x = "SecondVal"; | ||
|
||
EnableModule::set_x(\$x); | ||
|
||
$x = "ThirdVal"; | ||
|
||
EnableModule::set_x(\$x); | ||
|
||
$x = "FourthVal"; | ||
|
||
EnableModule::set_x(\$x); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters