Help for this page

Select Code to Download


  1. or download this
    
    sub dostuff {
    ...
    ...
    
    my @returned = dostuff();
    
  2. or download this
    sub DoSomething {
       my @array;
    ...
    }
    ...
    my @returned = DoSomething();
    
  3. or download this
    sub DoStuff {
        die 'Nothing to do in a void context' 
    ...
        # If we were called in an array context.
        return;  
    }