fatherperl
IS-IT--Management
Hi,
I've only been using Perl for 2 days and am trying to write a basic encryption program. (Not for practical use, just as an example).
I've got the program asking for the cleartext message and the 3 figure key, then it encrypts the 1st character of the cleartext using that the character of the key. My problem is that I can't figure out how to sequentially read characters from the variable (The cleartext message) - I need to read the next, then the next etc... The variable has been defined in a line something like this....
chomp ($cltmessage = <stdin>);
I'd appreciate anyhelp anyone could offer.
Thanks peeps
I've only been using Perl for 2 days and am trying to write a basic encryption program. (Not for practical use, just as an example).
I've got the program asking for the cleartext message and the 3 figure key, then it encrypts the 1st character of the cleartext using that the character of the key. My problem is that I can't figure out how to sequentially read characters from the variable (The cleartext message) - I need to read the next, then the next etc... The variable has been defined in a line something like this....
chomp ($cltmessage = <stdin>);
I'd appreciate anyhelp anyone could offer.
Thanks peeps