#!/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
$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