This repository has been archived by the owner on Jan 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(variables): fix variable handling
- Loading branch information
Showing
10 changed files
with
1,333 additions
and
1,147 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,38 @@ | ||
#!/usr/bin/env perl | ||
package Local::Package; | ||
use strict; | ||
use warnings; | ||
|
||
our $PKG_OUR = "our Local::Package PKG_OUR"; | ||
my $PKG_MY = "my Local::Package PKG_MY"; | ||
|
||
sub outer_sub { | ||
my $outer_my = "outer_my"; | ||
inner_sub("argument to inner_sub"); | ||
} | ||
|
||
sub inner_sub { | ||
my ($arg) = @_; | ||
local $/ = "\x{20ac}"; | ||
return $arg; | ||
} | ||
|
||
package main; | ||
use strict; | ||
use warnings; | ||
|
||
my $main_my = "main_my"; | ||
my %hash = ("\%hash_key" => "\%hash_value"); | ||
my $hash_ref = { | ||
"hash_ref_key" => "hash_ref_value" | ||
}; | ||
|
||
my $array_ref = [1..9]; | ||
|
||
my $string = "string"; | ||
|
||
my $ref_to_ref_to_string = \(\("ref_to_ref_to_string")); | ||
|
||
Local::Package::outer_sub(); | ||
|
||
exit 0; |
Oops, something went wrong.