in reply to Re: Announcing "p5u"
in thread Announcing "p5u"

The line is:

unshift $1, @ARGV if basename($0) =~ /^p5u-(\w+)$/;

... which is clearly an error. In 5.14, with push et all able to dereference scalar references, this is merely a symbolic reference.

Replies are listed 'Best First'.
Re^3: Announcing "p5u"
by tobyink (Canon) on Jul 03, 2012 at 06:53 UTC

    Hmmm... yes, the arguments to unshift need to be swapped. :-( Autoderef is fast shaping up to be my most unfavourite new Perl feature as it stops recent Perls from detecting this at the compile stage.

    update: 0.003 has now been uploaded; it should address this issue.

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'