[Israel.pm] Fwd: [Telux] Next Meeting: "High-Level Programming Concepts Using Perl 6" on 22-March

Gabor Szabo szabgab at gmail.com
Sat Mar 14 08:12:08 PDT 2009

On Sat, Mar 14, 2009 at 4:01 PM, Evgeny <evgeny.zislis at gmail.com> wrote:
> Because, as you have seen, I would love to write the callbacks like this:

> But since I can only pass an array, I end up with this:
> Given('a (.*)', sub {
>   my @params = shift;
>   my $project = $params[0];

Oh this line does not look good

you are taking the first param and putting in an array.
Something is fishy there. (aka code smell :-)

> Given('a (.*)', sub {
   my $project = shift;

would be better I guess.


More information about the Perl mailing list