Skip to content

Instantly share code, notes, and snippets.

View ChemicalJames's full-sized avatar

ChemicalJames

View GitHub Profile
@ChemicalJames
ChemicalJames / Temperature.pm
Created October 24, 2012 00:47
Temperature Module
package Temperature;
use strict; use warnings;
sub f2c {
my $f = shift;
my $c = (5/9) * ($f - 32);
return $c;
}
sub c2f {
my $c = shift;
@ChemicalJames
ChemicalJames / print_line_num.pl
Created October 23, 2012 21:01
GEN220 HW4 - error debugging
#!/usr/bin/perl -w
use strict;
foreach (0..8)
{
my $line = <>;
print "$_ : $line";
}