use threads; use test; my $argument=1; ## VVVVVVVVVV---- this is not a function reference, its a string! my $thread=threads->create("forthread", ($argument)); $thread->join(); exit(0);