Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: strong typing

by hardburn (Abbot)
on Dec 14, 2004 at 17:53 UTC ( #414790=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print $a+@b;     #coerce array into number
    
  2. or download this
    print $a+$ref_b; #coerce reference into number
    
  3. or download this
    my $d=eval %c;   #coerce hash into string
    
  4. or download this
    my @e=%c;print "@e";  #hashes and arrays are different types.  Oh wait
    
  5. or download this
    my @t=12;        #coerce number into array
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2021-01-28 02:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?