[ create a new paste ] login | about

Link: http://codepad.org/S2IPBaNf    [ raw code | output | fork ]

Perl, pasted on Apr 28:
1
2
3
4
5
6
use strict; 
use warnings; 

my %hash_example = ( "a"=>"apple", "b"=>"ball" ); 
print $hash_example{"a"};  # Goes Fine. 
print $hash_example{"c"};  # Throws Error. 


Output:
1
2
Use of uninitialized value in print at t.pl line 6.
apple


Create a new paste based on this one


Comments: