Skip to content

Commit 013b0fc

Browse files
committed
[cookbook] Correct minor whitespace issues
1 parent 0171709 commit 013b0fc

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

categories/cookbook/09directories/09-02-delete-file.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
=end pod
1212

1313
# create a file
14-
my $f = open "foo",:w;
14+
my $f = open "foo", :w;
1515
$f.print(time);
1616
$f.close;
1717

categories/cookbook/09directories/09-03-copy-move-file.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
=end pod
1212

1313
# create a file
14-
my $f = open "foo",:w;
14+
my $f = open "foo", :w;
1515
$f.print(time);
1616
$f.close;
1717

@@ -20,12 +20,12 @@
2020
$io.copy("foo2");
2121

2222
# clean up
23-
unlink ("foo2");
23+
unlink("foo2");
2424

2525
# move
2626
$io.rename("foo2");
2727

2828
# clean up
29-
unlink ("foo2");
29+
unlink("foo2");
3030

3131
# vim: expandtab shiftwidth=4 ft=perl6

categories/cookbook/09directories/09-05-all-files-dir.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
=end pod
1212

13-
for dir(".") -> $f {
13+
for dir(".") -> $f {
1414
say $f.perl;
1515
}
1616

categories/cookbook/09directories/09-06-filenames-matching-pattern.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
=end pod
1212

13-
my @perl-files = dir "." , test=>/\.pl/;
13+
my @perl-files = dir ".", test=>/\.pl/;
1414

1515
# returns a list of IO::Path objects
1616

categories/cookbook/09directories/09-07-all-files-process.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# note binding := for a list
1616

17-
my @files := find(:dir("/etc"),:type('file'));
17+
my @files := find(:dir("/etc"), :type('file'));
1818

1919
# returns a list of IO::Path objects
2020

0 commit comments

Comments
 (0)