Help for this page

Select Code to Download


  1. or download this
    chmod +s my_program_name.pl
    
  2. or download this
    chown my_user_name my_program_name.pl
    
  3. or download this
    ($<,$>)=($>,$<);   # Swap effective and actual user ID
    open(FILE, ">>/tmp/myfile") or die "Can't open /tmp/myfile";
    print FILE "stuff";
    close(FILE);
    ($>,$<)=($<,$>);   # Swap effective and actual user ID