Help for this page

Select Code to Download


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