"Fossies" - the Fresh Open Source Software Archive

Member "absence-v2.1/cgi-bin/addperson" (10 Jul 2008, 180 Bytes) of package /linux/www/web-absence-2.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Perl source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/usr/local/bin/perl
    2 
    3 use AbsenceDB;
    4 
    5 if (!@ARGV) {
    6     print "usage: $0 <name> <email-addr>\n";
    7     exit;
    8 }
    9 
   10 $name = $ARGV[0];
   11 $email = $ARGV[1];
   12 
   13 AbsenceDB::addPerson($name, $email);