This always fails: open(my $f, "<:raw", \$a) || die; Is this to be expected? I assume what is going on is that ":raw" pops off the implicit ":scalar" layer. Regards, Gisle