On Sat, Mar 14, 2009 at 4:01 PM, Evgeny <[email protected]> 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.

Gabor
_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl

Reply via email to