September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
|
|
@ -1,11 +1,11 @@
|
|||
sub MAIN ($filename = 'default.ppm') {
|
||||
|
||||
my $in = open($filename, :r, :enc<iso-8859-1>);
|
||||
my $in = open($filename, :r, :enc<iso-8859-1>) or die $in;
|
||||
|
||||
my ($type, $dim, $depth) = $in.lines[^3];
|
||||
|
||||
my $outfile = $filename.subst('.ppm', '.pgm');
|
||||
my $out = open($outfile, :w, :enc<iso-8859-1>);
|
||||
my $out = open($outfile, :w, :enc<iso-8859-1>) or die $out;
|
||||
|
||||
$out.say("P5\n$dim\n$depth");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue