Share
Explore BrainMass

PERL programming

Add comment lines for the different sections.

1 $fruit1 = "pear";
2 $fruit2 = "peaR";
3 $result = $fruit1 gt $fruit2;
4 print "$resultn";

5 $result = $fruit1 lt $fruit2;
6 print "resultn";

(Output)
4 1
6 0

Attachments

Solution Preview

Add comment lines for the different sections.

1 $fruit1 = "pear"; ##Assigns the string "pear" to the variable $fruit1
2 $fruit2 = "peaR"; ##Assigns the string "peaR" to the variable $fruit2
3 $result = $fruit1 gt $fruit2;##Tests the condition if $fruit1 is ...

Solution Summary

PERL programming is emphasized.

$2.19