- or download this
my %fileInfo = find(...);
...
$fileInfo{$fileName} = $fileName;
return %fileInfo;
}
- or download this
my %fileInfo;
...
...
$fileInfo{$fileName} = $fileName;
}
- or download this
my @fileNames;
...
...
push @fileNames, $fileName;
}
- or download this
my %fileInfo = func();
...
...put stuff in %fileInfo...
return %fileInfo;
}
- or download this
my %fileInfo = func();
...
...put stuff in %fileInfo...
return %fileInfo; # Return the local variable.
}
- or download this
my %fileInfo;
...
# Work with a global variable.
...put stuff in %fileInfo...
}