<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - Net::FTP - Comments</title>
 <link>http://community.activestate.com/forum-topic/net-ftp</link>
 <description>Comments for &quot;Net::FTP&quot;</description>
 <language>en</language>
<item>
 <title>RE: Net::FTP</title>
 <link>http://community.activestate.com/forum-topic/net-ftp#comment-6579</link>
 <description>&lt;p&gt;FTP servers should accept some standard form of user name. This could be NIC idents or last name with optional use of initials. FTP Client boasts many elements of the Mac OS X interface, including Toolbars, drawers, live resizing and more, making it a pleasure to use. &lt;/p&gt;
&lt;p&gt;------------------------&lt;br /&gt;
hennry&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.drivenwide.com&quot;&gt;search engine optimization&lt;/a&gt;&lt;/p&gt;
</description>
 <pubDate>Thu, 25 Sep 2008 01:27:41 -0700</pubDate>
 <dc:creator>leoonardojack_hotmail</dc:creator>
 <guid isPermaLink="false">comment 6579 at http://community.activestate.com</guid>
</item>
<item>
 <title>Try this:
$ftp =</title>
 <link>http://community.activestate.com/forum-topic/net-ftp#comment-3962</link>
 <description>&lt;p&gt;Try this:&lt;/p&gt;
&lt;p&gt;$ftp = Net::FTP-&amp;gt;new( $ip, Debug =&amp;gt; 0 ) or $newerr=1;&lt;br /&gt;
if ($newerr == 1) {&lt;br /&gt;
    push @ERRORS, &quot;Put descriptive message here. Reason: $!\n&quot;;&lt;br /&gt;
    $newerr = 0;&lt;br /&gt;
    # place goto here if you need to change program flow&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Then, at the end of the script I process the @ERRORS array, and email any error messages to myself.  There are probably better solutions, but this works for me.&lt;/p&gt;
</description>
 <pubDate>Tue, 22 Jan 2008 14:19:55 -0800</pubDate>
 <dc:creator>NightOwl</dc:creator>
 <guid isPermaLink="false">comment 3962 at http://community.activestate.com</guid>
</item>
<item>
 <title>Net::FTP</title>
 <link>http://community.activestate.com/forum-topic/net-ftp</link>
 <description>&lt;p&gt;I have written a Perl program to ftp data to a trading partner.  I would like to learn more on how to capture errors on the connection.&lt;/p&gt;
&lt;p&gt;Current Code:&lt;/p&gt;
&lt;p&gt;$ftp = Net::FTP-&amp;gt;new( $ip, Debug =&amp;gt; 0 ) or die &quot;Cannot connect to $ip :$@&quot;;&lt;/p&gt;
&lt;p&gt;But I want to report the error either to a log file or capture the error to be emailed out to the support staff.  The â€œdieâ€ command does not accept arguments like â€œprintâ€ or execute sub-routines.  Iâ€™ve looked at the CARP function as well as the â€œevalâ€ function but donâ€™t really understand them.  Is there a way to perform a sub-routine when an error happens so that a log entry or email can be processed?&lt;/p&gt;
&lt;p&gt;Thanks...&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/net-ftp#comments</comments>
 <category domain="http://community.activestate.com/forums/perl-discussion-0">Perl discussion</category>
 <category domain="http://community.activestate.com/os/windows-server-2003">Windows Server 2003</category>
 <pubDate>Mon, 25 Jun 2007 12:41:25 -0700</pubDate>
 <dc:creator>VIT</dc:creator>
 <guid isPermaLink="false">1065 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
