Some general perl variables:
$scalar = 1 ; #String, integers, floats
print $scalar ;
@array = ("apple", "pair");
print $array[0];
print $array[1];
%hash = ();
$hash{"apple"} = 100;
$hash{"pair"} = 200;
print "Cost is $hash{"apple"} \n";
Windows, Linux, Mac OS X, Java and Ruby Tips and Tricks
No comments:
Post a Comment