Hello, it's my first post so please be gentle ;+}
I've just installed Activestate Perl for Windows 5.16.3.
I have a text file with a list of names (lower case).
I want to replace every occurence of the name 'gary' with the name 'harry'.
On the command line i am typing :
perl -i.bak -p -e 's/gary/harry/g;' file.txt
It returns with no errors but the new file is the same as the old file - no changes have been made.
To be honest i don't even know what the -p and -e switches are doing, i'm assuming -i is just for renaming the output file ? Also i don't know what the 's' and 'g' do in the replace bit!
Any help greatly appreciated,
perlynoob.