develooper Front page | perl.beginners | Postings from April 2002

RE: ftp

Thread Previous
Michael Gargiullo
April 3, 2002 07:18
RE: ftp
Message ID:
The file is huge...  timing out on your machine maybe?
I made 2 little modifications and it ran.

#!/usr/bin/perl -w
use LWP::Simple;

my $x = get(""); # Combined the my and
the get

if ($x eq "")
 print "FTP not working";
print "$x"; #Quoted the Var

Worked for me


-----Original Message-----
From: []
Sent: Wednesday, April 03, 2002 7:56 AM
Subject: ftp

hi everybody,
pls let me know what is wrong with this piece of code...

use LWP::Simple;

my $x = ' ';
$x = get("");

if ($x eq "")
 print "FTP not working";
print $x;



To unsubscribe, e-mail:
For additional commands, e-mail:

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About