madorb has asked for the wisdom of the Perl Monks concerning the following question:
main_file.pl ------------------- use strict; use Env; use Getopt::Long; use Config::Properties; use Net::FTP::Recursive; use Net::SFTP::Foreign; use File::Copy; use File::Basename; use Cwd; use Fcntl ':mode'; use MIME::Base64::Perl; use Net::MySQL; ... if(something){ require("sub_file.pl"); sub_from_sub_file(); } ... sub_file.pl ------------------- use strict; use XML::LibXML; use Config::Properties; use DBI; use threads; ... sub_from_sub_file(){ print "Before\n"; my $thr = threads->new(\&sub1); print "After\n"; } sub sub1{ print "HI!\n"; } ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ithreads not behaving as expected
by BrowserUk (Patriarch) on Jul 16, 2009 at 21:50 UTC | |
by BrowserUk (Patriarch) on Jul 16, 2009 at 23:38 UTC | |
by madorb (Novice) on Jul 16, 2009 at 22:16 UTC | |
|
Re: ithreads not behaving as expected
by SuicideJunkie (Vicar) on Jul 16, 2009 at 20:43 UTC | |
|
Re: ithreads not behaving as expected
by Corion (Patriarch) on Jul 16, 2009 at 21:35 UTC |