Help for this page

Select Code to Download


  1. or download this
    my $filename = "";
    $filename = $hash{"LIS_FILE"}      if ( $node eq "sam" );
    ...
    my $mail_server_name = "";
    $mail_server_name = $hash{"MAIL_SERVER"}      if ( $node eq "sam" );
    $mail_server_name = $hash{"MAIL_SERVER_TEST"} if ( $node eq "cad2" );
    
  2. or download this
    my $key_ext=$node eq "sam" ? "" : "_TEST";
    my $filename         = $hash{"LIS_FILE"     .$key_ext};
    ...
    my $sqt_path         = $hash{"SQT_PATH"     .$key_ext};
    my $database_name    = $hash{"DB_NAME"      .$key_ext};
    my $mail_server_name = $hash{"MAIL_SERVER"  .$key_ext};
    
  3. or download this
    error_msg( "SR", "OE", $row[5], $row[3],"A STRING","No Email Address."
    + )
        if ( $invalid_sr && !$errnow );
    $errnow = 1 
        if ( $invalid_sr && !$errnow );
    
  4. or download this
    $mail_server_name = $hash{"MAIL_SERVER"}      if ( $node eq "sam" );
    $mail_server_name = $hash{"MAIL_SERVER_TEST"} if ( $node eq "cad2" );
    
  5. or download this
    if ( $invalid_sr && !$errnow ) {
       error_msg( "SR", "OE", $row[5], $row[3],"A STRING","No Email Addres
    +s." )
       $errnow = 1;
    }
    
  6. or download this
    if ( CONDITION ) {
         ACTION
    ...
    } else {
         Maybe this shouldnt have been a possibility? Throw an Error?
    }
    
  7. or download this
    sub foo {
       my $whatzit=shift; #key information for calculating the $snoozle
       my $baz    =shift; #Modifier, allows for negative $snoozle if this 
    +is set
    
  8. or download this
    sub foo {
       my $whatzit=shift # the whatzit
    
  9. or download this
    $sender = new Mail::Sender { smtp => $mail_server_name };
    
  10. or download this
    $sender = Mail::Sender->new( { smtp => $mail_server_name } );