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