in reply to Re: Immoral?
in thread Morality of posting Perl "virus" code?

Not to pick a nit (I agree with your general point) but the above code *does* use seek... around line 20 you have
seek FILE, 0, 0; print FILE $program;

-Blake

Replies are listed 'Best First'.
Re: Immoral?
by Abigail (Deacon) on Jun 29, 2001 at 11:29 UTC
    Sure, it uses seek (you could easily avoid that, just reopen the file), but the point is that the seek isn't in the program to be attacked. It's not that not using seek makes your programs more secure.

    -- Abigail