Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use threads;
    use strict;
    ...
    sub sub1 {
        print "hi from thread";
    }
    
  2. or download this
    my $thr = threads->new(\&sub1);
    
    ...
            my $self_thread = $(this); #I know this is absolutely wrong ju
    +st trying to make you understand what I want
        print "hi from thread $self_thread";
    }