- or download this
package Celcius;
...
return bless \$data, $class;
}
- or download this
sub STORE{
my $self=shift;
my $data=shift;
$$self = ($data*(9/5)+32);
}
- or download this
sub FETCH{
my $self=shift;
...
}
1;
- or download this
#!/usr/bin/perl -w
...
$temp = $_;
print "Temp is $_ (F) ($temp (C))\n";
}