in reply to i want to go through the code of Net::Ftp module in perl

Actually, I believe the timeout period can be set when you construct a new FTP object. Take a look at the docs for Net::FTP and look at options under the "new" construction.
  • Comment on Re: i want to go through the code of Net::Ftp module in perl