D
dearcilla
I'm new to perl, and tend to find it frustrating. I thought PerlIO
layers were a neat feature, but I can't do anything with them.
When I write something like this:
open(my $fileHandle, ">:via(Base64)", $name . '.txt') or die "$!";
binmode($fileHandle);
my $binaryData = "Hi there";
print $fileHandle $binaryData;
I get a file with "Hi there", not "SGkgdGhlcmU=". Using the CBC layer
results in an analogous problem.
I can go into more detail if necessary, but I'm trying to keep this
short, since many people don't like to read long posts.
layers were a neat feature, but I can't do anything with them.
When I write something like this:
open(my $fileHandle, ">:via(Base64)", $name . '.txt') or die "$!";
binmode($fileHandle);
my $binaryData = "Hi there";
print $fileHandle $binaryData;
I get a file with "Hi there", not "SGkgdGhlcmU=". Using the CBC layer
results in an analogous problem.
I can go into more detail if necessary, but I'm trying to keep this
short, since many people don't like to read long posts.