Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 having an uproarious good time at the Monastery: (10)
As of 2014-08-20 05:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (105 votes), past polls