Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

tall_man's scratchpad

by tall_man (Parson)
on Jun 13, 2004 at 17:39 UTC ( [id://366280]=scratchpad: print w/replies, xml ) Need Help??

I think my first "bug report" was a misunderstanding. Named parameters and slurpy array positional parameters just don't mix. Here is the code that should be in the test case. It's in direct contradiction to a test case that's already being used. In other words, the other test is probably wrong and this one should replace it, rather than putting it in t/pugsbugs. Since $x is flagged "+" (a named parameter only), I don't think it should bind to a positional parameter. It should get the default instead.
sub foo (+$x = 3) { $x } is(foo(4), 3, "a positional parameter should not bind to a forced name +d parameter");
I am not yet on the mailing list, IRC, or on the commit rights list. Eventually I would like to be, but for now I'd just like to turn in a bug report.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-29 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found