Think about Loose Coupling | |
PerlMonks |
Re^2: Medicine monthly prices by dose calculatorby chanio (Priest) |
on Oct 24, 2005 at 23:50 UTC ( [id://502603]=note: print w/replies, xml ) | Need Help?? |
Thank you QM for your suggestions. They are now, listed for others to consider them... About passing the input file on the command line, it would be an interesting issue since I would then need to use the <STDIN> diamond to ask for the quantities. If not, it would mess with the previous <> input ... I wouldn't ever change the medicine's standard units, since they are not part of the script. (They are part of life's script and are only restricted to the doctors that prescribed them: it is not the same to build a house with one mason during 30 days or building it with 30 masons in one day) It is a one-liner, because I wouldn't bother filing it as another script. But it is useful. I'll consider the -n option, promised!
In Section
Cool Uses for Perl
|
|