Perl Scripting: Search for Regular Expression not work :(

view full story

http://www.linuxquestions.org – I'm writing a Perl script to find an old key in a file and replace it with a new code first the program should find the old key in the input file. here is the way I used in my script. but it doesn't work. May you please let me know what is wrong and how I can correct it? the key is stored in the file in the following format: PHP Code: Key=("1234567" , someOtherVrable)  I want 1234567 here is my script to find this key Code: open(INPUT,"inputfile.txt") or die "cant open file"; $oldKey=NULL; while (<INPUT> == NULL &am (HowTos)