Explore BrainMass
Share

Explore BrainMass

    PERL programming

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    See the attached file.
    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.

    © BrainMass Inc. brainmass.com October 9, 2019, 6:25 pm ad1c9bdddf
    https://brainmass.com/computer-science/perl/perl-programming-87617

    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 greater ...

    Solution Summary

    PERL programming is emphasized and discussed in the solution.

    $2.19