in reply to perl binary size reducing

In case a programm/person is modifying the compiled perl script, you can try to set it immutable:
chattr +i mycompiledscript
Afterwards it will not be possible to modify or replace this script until someone executes:
chattr -i mycompiledscript
Since most programms don't do a 'chattr -i file' before trying to modify a file, and most people do not know about it, it should be less likely that your file will change in size.

Update:
Note: "chattr +/-i file" will only work as root.

Replies are listed 'Best First'.
Re^2: perl binary size reducing
by karlgoethebier (Abbot) on Nov 28, 2013 at 09:28 UTC
    "...and most people do not know about it..."

    Unfortunately now they know about it.

    Regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

      pretty sure it is not a person who is doing this... so not very concerned about the -i option... wait and watch

        Take a look at man inotify


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.
Re^2: perl binary size reducing
by sadat.ali.khan (Initiate) on Nov 28, 2013 at 08:37 UTC

    thanks... done. will monitor for a few days and confirm if this works

      Note that a root user can still do whatever he wants with the file.
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
        As long as he executes
        chattr -i file
        
        first. Without this even root can not modify/delete the file.
        I like to protect important files with the immutable flag. As such an accidental deletion/modification is very unlikely, since even rm -rf as root won't work on a file with an immutable flag set.