Help for this page

Select Code to Download


  1. or download this
    sub foo ($$) { $_[0] + $_[1] } # add two scalar args :)
    
    foo(1,2) 
    @a = (1,2); foo(@a); # death !! not enough arguments
    @b1 = (2); @b2 = (3); foo(@b1,@b2) # 2 !?!?  = scalar @b1 + scalar @b2