1. hash is created 2. passed to statinfo subroutine 3. passed to encrypt or decrypt subroutine from statinfo a. eval is run over gpg encryption/decryption 4. file(s) are moved to where they need to be 5. email is sent (proggie done) #### my(%temphash) = %workhash; if (%workhash = &statinfo(%temphash) != 0) { print "ERR -> statinfo sub\n"; exit; } sub statinfo { # bunch of stuff here - actually gathering of information # from stat function my(%temphash) = %workhash; if ( $workhash{abbr} =~ /lmr/lamer/ ) { %workhash = &ezip(%temphash); } elsif ( ($workhash{encrypt} eq "pgp") && ($workhash{tranmeth} eq "put") ) { %workhash = &encrypt(%temphash); } elsif ( ($workhash{encrypt} eq "pgp") && ($workhash{tranmeth} eq "get") ) { %workhash = &decrypt(%temphash); } else { print "ERR! - dont know what to do!\n"; exit(1); } }