Tuesday, 21 July 2015

Perl : Initial Values of Scalar Variables

#!/usr/local/bin/perl

$result = $undefined + 2; # $undefined is not defined

#$undefined = null.

print ("The value of \$result is $result.\n");


The value of $result is 2.


Initial value of the Perl  null string is  null

No comments:

Post a Comment