Thankyou for your suggestion rpanman,
[sjoh@nucleix method]$ perl ftp1.pl Net::FTP>>> Net::FTP(2.75) Net::FTP>>> Exporter(5.58) Net::FTP>>> Net::Cmd(2.26) Net::FTP>>> IO::Socket::INET(1.27) Net::FTP>>> IO::Socket(1.28) Net::FTP>>> IO::Handle(1.24) Net::FTP=GLOB(0x9da13a0)<<< 220 (vsFTPd 2.0.5) Net::FTP=GLOB(0x9da13a0)>>> user anonymous Net::FTP=GLOB(0x9da13a0)<<< 331 Please specify the password. Net::FTP=GLOB(0x9da13a0)>>> PASS .... Net::FTP=GLOB(0x9da13a0)<<< 230 Login successful. Net::FTP=GLOB(0x9da13a0)>>> CWD /pub/CPAN Net::FTP=GLOB(0x9da13a0)<<< 250-The Comprehensive Perl Archive Network + (http://www.cpan.org/) Net::FTP=GLOB(0x9da13a0)<<< 250-master site has been from the very beg +inning (1995) hosted at FUNET, Net::FTP=GLOB(0x9da13a0)<<< 250-the Finnish University NETwork. Net::FTP=GLOB(0x9da13a0)<<< 250- Net::FTP=GLOB(0x9da13a0)<<< 250- Net::FTP=GLOB(0x9da13a0)<<< 250 Directory successfully changed. Net::FTP=GLOB(0x9da13a0)>>> PASV Net::FTP=GLOB(0x9da13a0)<<< 227 Entering Passive Mode (193,201,200,224 +,185,150) Net::FTP=GLOB(0x9da13a0)>>> RETR README.html Net::FTP=GLOB(0x9da13a0): Timeout at ftp1.pl
but now if I add as tirwhan suggested,
my $ftp=Net::FTP->new("ftp.cpan.org", Firewall => "XXXX", Debug => 1) ine 8
Where XXXX- proxy of my institute
I am getting message
Couldnt connect:Net::FTP: connect: Connection refused

In reply to Re^2: Problem with Net::FTP by cool
in thread Problem with Net::FTP by cool

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.