Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    sub mod_perl {
    ...
    mod_perl(qw( Morning Morn ));
    mod_perl(qw( Evening Eve ));
    mod_perl();
    
  2. or download this
    Variable "$static1" will not stay shared at static.pl line 9.
    <Hi> [Hello] (Hello) (Hi)
    [undef] (Goodbye) (Bye)
    [undef] (Morning) (Morn)
    [undef] (Evening) (Eve)
    
  3. or download this
    sub uniqueNonBlanks {
        my( $avItems )= @_;
        my @return;
    ...
        }
        return wantarray ? @return : \@return;
    }
    
  4. or download this
    my @a= uniqueNonBlanks("Why","","I","Why");
    my @b= uniqueNonBlanks("Why","You","Be","I");
    $"= ",";
    print "(@a) (@b)\n";
    
  5. or download this
    sub validateOptions {
        my( $hvOptions, $hvUserOpts )= @_;
    ...
            # ...
        }
    }
    
  6. or download this
    our %Open_defaults= ( Access=>READ_ONLY, Delimiter=>"/" );
    sub Open {
        my( $keyName, $hvUserOpts )= @_;
    ...
        my $hvOpts= validOptions( {%Read_defaults}, $hvUserOpts );
        # ...
    }
    
  7. or download this
    sub mod_perl {
        our $static= "Hi";
        sub sub1 {
    ...
        }
        # ...
    }
    
  8. or download this
    sub mod_perl {
        {
            my $static1 BEGIN;
    ...
        }
        # ...
    }
    
  9. or download this
    sub mod_perl {
        sub sub1 {
            my $static1= "Hi" STATIC;
    ...
        }
        # ...
    }