in reply to Re: Hacking of JavaScript files in our corporate website
in thread Hacking of JavaScript files in our corporate website
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Hacking of JavaScript files in our corporate website
by shajiindia (Acolyte) on Dec 17, 2012 at 13:43 UTC | |
Here is the code I am working on. It works for sample data, but for the actual data, it is not working. I am working on the backup of the live files and presently using the following script. I am working on Active Perl 5.14 on Windows. Please help.
Here is a code signature of the hacked .js files
I want to make the above code to get replaced instead of the sample pattern. | [reply] [d/l] [select] |
by CountZero (Bishop) on Dec 17, 2012 at 19:03 UTC | |
Warning: Do not run this on a And of course, back-up the files before you start this script. CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James My blog: Imperial Deltronics | [reply] [d/l] |
by Anonymous Monk on Dec 17, 2012 at 14:23 UTC | |
I would rethink this
You can replace that with use File::Find::Rule; Or even the iterator version (if you have thousands of files), example in Re^2: Write to existing file with character insert | [reply] [d/l] |