perl code to python, alpha character to next alphabet charater?
DON WAGNER
wagnertuba at hotmail.com
Fri May 11 06:16:53 EDT 2001
I'm just staring out in python.
I recently posted for some help about re [A-Za-z0-9] and how to use it in
Python.
I know this code is possible in Python because it is very easy in perl:
#Takes a file and changes character to the next character in alphabet.
$TheFile = "hello";
open(INFILE, $TheFile)
$_=<INFILE>;
tr/A-Ya-yZz/B-Zb-zAa/;
print$_;
Still working on regular expressions and reo.sub
Thanks, don
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
More information about the Python-list
mailing list