Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^2: Announcing "p5u"

by chromatic (Archbishop)
on Jul 02, 2012 at 21:47 UTC ( #979544=note: print w/replies, xml ) Need Help??

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 (Abbot) 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'

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://979544]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2017-02-24 04:44 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (351 votes). Check out past polls.