I think the fat comma is used here for aestethical reasons, as /regexp/ is applied to @_. I am also guilty of that sometimes. The notation makes sense sometimes, originally for key-value pairs in hashes :
my %hash = ( foo => bar );
You can also use it for the parameters if you have a subroutine that acts as a pipeline :
sub transform {
my ($source, $target) = @_;
...
};
transform( 'input/start.file' => 'output/' );
In that case, the "arrow" could be interpreted also in the mapping sense.
perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The
$d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider
($c = $d->accept())->get_request(); $c->send_response( new #in the
HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web
|