First, thanks for reading! 
I don't know PERL. The little I did know seems to have been forgotten.
The following script was translated from a JScript which has similar syntax. I would appreciate it if someone could look over it and fix errors.
Thanks very much for your time.
P.S. Yes, I know the encryption is really pathetic but it's just to test a concept
I don't know PERL. The little I did know seems to have been forgotten.
The following script was translated from a JScript which has similar syntax. I would appreciate it if someone could look over it and fix errors.
Thanks very much for your time.
Code:
#!perl
file open="data.txt";
// data.txt is a flat file. I only want to read it's contents.
var cY = split (//, file);
// cY is a new array. Each member contains one character from data.txt (including spaces)
var i=0;
var b;
var c;
while (i<cY.length+3) {
b=i;
c=b+2;
i=i+3;
while (b-1!=c) {
if (cY[c]) {eY=eY+cY[c];} else {eY=eY+' ';}
c--;
}
}
cY = join (//, cY);
// cY is now one long string
print '<body onload="parent.decrypt($cY)"></body>';
}
// print HTML and exit
P.S. Yes, I know the encryption is really pathetic but it's just to test a concept