in reply to There be dragons (or, perl5.8's open stringref breaks...)

Interesting, this code compiles and runs, but the data isn't copied.

#!/usr/bin/perl use strict; use warnings; use File::Copy; my $buffer = <<EOS; Here there be dragons! EOS copy(\$buffer, "foo.txt");


Update:

My bad. The Copy chokes on a non-filehandle.


s//----->\t/;$~="JAPH";s//\r<$~~/;{s|~$~-|-~$~|||s |-$~~|$~~-|||s,<$~~,<~$~,,s,~$~>,$~~>,, $|=1,select$,,$,,$,,1e-1;print;redo}