Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use "info var my" code goodness of in "info var our".
- Loading branch information
Rocky Bernstein
committed
Nov 24, 2011
1 parent
0441c23
commit 0169ab1
Showing
5 changed files
with
64 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env perl | ||
use strict; use warnings; | ||
our $a = 1; | ||
sub bar($) { | ||
our $h = shift; | ||
return $h; | ||
} | ||
|
||
sub foo($) { | ||
our $a = shift; | ||
our @b = (1, "b"); | ||
our %h = (1 =>'foo', 'food' => 'fight'); | ||
bar \%h; | ||
our $c = scalar @b; | ||
} | ||
foo 5; |
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