Help for this page

Select Code to Download


  1. or download this
    sub prototest($); # declare sub and prototype 
    
    prototest( 4 ); # dies if no param or more than 1 param is passed
    ...
    sub prototest($){
        print '1, 2, 3, ', @_;
    }
    
  2. or download this
    sub prototest($){
        print '1, 2, 3, ', @_;
    }
    prototest( 4 ); # dies if no param or more than 1 param is passed