Write to a file

AUTHOR

Scott Penrose

#!/usr/bin/env perl6



use v6;

my $tempfile = open('output.txt', :w);
$tempfile.print("Hello world\n");
$tempfile.close;

# vim: expandtab shiftwidth=4 ft=perl6

See Also

01-read-from-file.pl

Reading from a file

01-read-from-terminal.pl

Reading from the terminal

01-word-wrap.pl

Word-wrap paragraphs to a given length

lazy-evaluation.pl

Lazily evaluate items in a list

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.