Help for this page

Select Code to Download


  1. or download this
    sub my_sub { print "I'm a sub!\n"; }
    
  2. or download this
    sub my_sub_with_args { 
        my @args = @_; 
        print "I'm in a sub that was called with these args: @args\n";
    }
    
  3. or download this
    my_sub();
    my_sub_with_arguments("some", "arguments");