Jump to content

Greyscale bars/Display: Difference between revisions

m
→‎{{header|Perl 6}}: better message if file open fails
(Added Perl example)
m (→‎{{header|Perl 6}}: better message if file open fails)
Line 1,072:
<lang perl6>my ($width,$height) = 1280,768;
my $PGM = open "Greyscale-bars-perl6.pgm", :w ororelse die "Can't create Greyscale-bars-perl6.pgm: $!_";
$PGM.print: qq:to/EOH/;
2,392

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.