Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: strong typing

by sleepingsquirrel (Chaplain)
on Dec 15, 2004 at 05:24 UTC ( [id://414938]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      sub add_two ($$); # add_two will be defined later
    
  2. or download this
        $account_balance   = @credits + @debits;
        $biblical_metaphor = @sheep - @goats;
    
  3. or download this
        @account_balances   = @credits + @debits;
        @biblical_metaphors = @sheep - @goats;
    
  4. or download this
    $length2 = scalar(@intArray); # type coercion, reports size of the arr
    +ay
    $hashTable{"third"} = @intArray; # coercion to a scalar type means the
    + value is not the array but its length
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-20 03:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found