• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Can someone with a unix box check this perl script for me, please?

Gigantopithecus

Diamond Member
Sorry, I'm a biologist trying to learn how to program perl and this is my first baby step, and for some reason my friend's unix box won't let me log on.

Here's the script:

#!/usr/bin/perl
print "How many moles of solute do you have?\n";
$moles=<STDIN>;
print "How many liters of solution do you have?\n";
$solution=<STDIN>;
$totalmolarity=$moles/$solution;
print "The molarity of your solution is $totalmolarity\n";

All it should do is calculate the molarity of a solution given x moles of solute & y liters of solution.
 
Back
Top