Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

prototypes parens/parenthesis hash initialization/declaration / Too many arguments for / $$

by Anonymous Monk
on Feb 12, 2013 at 09:34 UTC ( [id://1018325]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -MData::Dump -e " sub ff($$){ qq{@_} } my %f = ( 12 => ff 1,2, 
    +34 => ff 3,4 ); dd\%f "
    Too many arguments for main::ff at -e line 1, near "4 )"
    Execution of -e aborted due to compilation errors.
    
  2. or download this
    $ perl -MData::Dump -e " sub ff($$){ qq{@_} } my %f = ( 12 => ff( 1,2)
    + , 34 => ff( 3,4) ); dd\%f "
    { 12 => "1 2", 34 => "3 4" }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1018325]
Approved by Athanasius
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-24 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found