- or download this
#!/usr/bin/perl
use strict;
...
package main;
# now in main scope, ready for action!
# the safest place to do things
- or download this
package main;
*set_scale = \&my_temp_convert::set_scale;
set_scale(1);
- or download this
sub new { bless {} }
sub set_scale {
...
package main;
my $temp = my_temp_convert->new;
$temp->set_scale(1);
- or download this
package main;
my_temp_convert->import;
set_scale(1)
- or download this
package main;
no strict 'refs'; # this is necessary
...
*{"::$sym"} = *{"my_temp_convert::$sym"};
}
set_scale(1);
- or download this
*main:: = *my_temp_convert::;
- or download this
sub set_scale{$curr_scale=shift}
sub set_temp($){
#convert to C if needed, and store in "curtmp"
}
- or download this
sub set_scale{ curr_scale=shift}
sub set_temp($){#convert to C if needed, and store in "curtmp"}