Skip to content

Commit

Permalink
Simple sub close.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Oct 17, 2011
1 parent c042c3c commit 8d23b25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/CORE.setting
Expand Up @@ -2118,6 +2118,10 @@ multi sub open($filename, :$w?, :$a?) is unsafe {
}
}
sub close($file) {
$file.close;
}
# TODO $*ARGFILES, multi
sub get($handle = $*IN) { $handle.get }
sub lines($filehandle = $*IN) { $filehandle.lines }
Expand Down

0 comments on commit 8d23b25

Please sign in to comment.