Help for this page

Select Code to Download


  1. or download this
    sub my_func
    {
      my $params = shift;
    ...
    
    # "Error: Not a Hash reference"
    my_func( message => "Hello, world!" );
    
  2. or download this
    sub my_func
    {
      my %params;
    ...
    
    # also good
    my_func( message => "Hello, world!" );