mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 19:42:56 +01:00
Add missing samples
This commit is contained in:
parent
26ff8cb857
commit
db4c9f21b4
52 changed files with 5060 additions and 540 deletions
18
test/samples/sample.perl.txt
Normal file
18
test/samples/sample.perl.txt
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/perl
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Path::Tiny;
|
||||
|
||||
my $dir = path('foo','bar'); # foo/bar
|
||||
|
||||
# Iterate over the content of foo/bar
|
||||
my $iter = $dir->iterator;
|
||||
while (my $file = $iter->()) {
|
||||
|
||||
# See if it is a directory and skip
|
||||
next if $file->is_dir();
|
||||
|
||||
# Print out the file name and path
|
||||
print "$file\n";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue