Help for this page

Select Code to Download


  1. or download this
    if ( $array =~ /^\s*$/ ) { # true if line is empty or whitespace only
        ....
    }
    
  2. or download this
    (echo SYSDATAMSG; uname -a; uptime; date) | mail -s uptime time@taproo
    +t.bz
    
  3. or download this
    open(MAIL, "$file") || die "cant open spool\n";
    my @mail_lines = <MAIL>;
    ...
            print $uname_data, $uptime_data, $time_stamp;
        }
    }