Skip to content

Commit

Permalink
- Added the 'Perl' class into the parser list of 'built_in_classes'
Browse files Browse the repository at this point in the history
  • Loading branch information
trizen committed Aug 1, 2015
1 parent b111db6 commit 8f9f4be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions lib/Sidef/Parser.pm
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,12 @@ package Sidef::Parser {
built_in_classes => {
map { $_ => 1 }
qw(
File FileHandle
Dir DirHandle
Arr Array Pair
File
FileHandle
Dir
DirHandle
Arr Array
Pair
MultiArray MultiArr
Hash
Str String
Expand All @@ -165,6 +168,7 @@ package Sidef::Parser {
Sig SIG
Regex
Time
Perl
Sidef
Parser
Block
Expand Down
2 changes: 1 addition & 1 deletion scripts/amb_nested_loops.sf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var code = { |*arr|
func main () {

var alg = (
try { require 'Algorithm::Loops'->() }
try { frequire 'Algorithm::Loops' }
catch { STDERR.print("** Algorithm::Loops is not installed!\n"); return }
);

Expand Down

0 comments on commit 8f9f4be

Please sign in to comment.