Skip to content

Commit

Permalink
[info globals]
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Jul 11, 2010
1 parent af1a0c3 commit 3a358b6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Partcl/commands/info.pm
Expand Up @@ -172,7 +172,16 @@ my sub functions($pattern = '*') {
}

my sub globals($pattern = '*') {
'';

my %GLOBALS := pir::get_hll_global__ps('%GLOBALS');
my $globber := StringGlob::Compiler.compile($pattern);
my @result := pir::new__Ps('TclList');

for %GLOBALS -> $var {
@result.push($var) if
?Regex::Cursor.parse($var, :rule($globber), :c(0));
}
@result;
}

my sub hostname() {
Expand Down

0 comments on commit 3a358b6

Please sign in to comment.