从文件中读取
作者:Scott Penrose
源代码: 01-read-from-file.pl
#!/usr/bin/env perl6 use v6; my $tempfile = open('lorem.txt', :r); my $first_line = $tempfile.get; say $first_line;
作者:Scott Penrose
源代码: 01-read-from-file.pl
#!/usr/bin/env perl6 use v6; my $tempfile = open('lorem.txt', :r); my $first_line = $tempfile.get; say $first_line;