Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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.


Comment on Re^2: Announcing "p5u"
Download Code
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://979544]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2015-07-04 19:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls