Shortening your regular expression match in perl

Normally, when you pattern match using a regular expression in Perl, your expression will match as much as possible.
For example,
$match = "hello to you world what in the world were you thinking";
$match =~ /hello.*world/;
$match is now "hello to you world what in the world"
If you want to make this match the least amount and still [...]

Passing an array reference in perl

In perl, when you declare a variable and assign it a value, and then later pass that variable into a function, the function is getting a copy of the variable, manipulating it, and then passing back some result. This may be fine for most operations, but if you are operating on a large array of [...]