March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
|
|
@ -1,11 +1,11 @@
|
|||
sub MAIN ($filename = 'default.ppm') {
|
||||
|
||||
my $in = open( $filename, :r , :bin ) or die "$!\n";
|
||||
my $in = open($filename, :r, :enc<iso-8859-1>);
|
||||
|
||||
my ($type, $dim, $depth) = $in.lines[^3];
|
||||
|
||||
my $outfile = $filename.subst('.ppm', '.pgm');
|
||||
my $out = open( $outfile, :w, :bin ) or die "$!\n";
|
||||
my $out = open($outfile, :w, :enc<iso-8859-1>);
|
||||
|
||||
$out.say("P5\n$dim\n$depth");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue