Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Help in deleting no right mouse click code from 10k of pages on server (http://www.greenguysboard.com/board/showthread.php?t=8227)

swedguy 2004-06-13 05:27 PM

I just went through the Perl 5.8 Changelog (I tried the script on 5.6) and nothing interesting in there. Thought they might've changed something.

If you just try this little script

PHP Code:

#!/usr/bin/perl

$var 'hello';
print 
$var

Does it work?

Cleo 2004-06-13 05:29 PM

I'm getting this error

myscripts/remove-right-mouse-code.pl: undef: command not found
myscripts/remove-right-mouse-code.pl: line 5: syntax error near unexpected token `s/(/<'
myscripts/remove-right-mouse-code.pl: line 5: `s/(/
2. Or, you could add comments that act as tags around code to clearly identify those blocks.

Code:




Then, if you think one of the files does not use the same block of code, or you want to modify the block of code, or remove it altogether, those tags make it very easy to do so.

Entreri.

Cleo 2004-06-14 07:30 AM

Yeah I made a tarball of the whole site before running this just incase something went horribly wrong.

As for the code I would never do something like this. This whole site was done in FrontPage with the server extensions by someone that had no idea what they were doing over 6 years.

I've looked through many of the pages and have yet to find any pages with this code still in them so it looks like this worked extremely well.

Rorschach 2004-06-17 10:25 PM

*cough*

man sed


All times are GMT -4. The time now is 02:14 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc