Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: copy a file from ftp to clients hard drive

by ktross (Deacon)
on May 13, 2005 at 16:49 UTC ( [id://456814]=note: print w/replies, xml ) Need Help??


in reply to copy a file from ftp to clients hard drive

A shot in the dark, but I would try replacing the double quotes in:
my $File = Net::FTP->new("ftp.26.190.158.98")
with single quotes:
my $File = Net::FTP->new('ftp.26.190.158.98')
Update: Duely noted, thanks.

Spem Successus Alit

Replies are listed 'Best First'.
Re^2: copy a file from ftp to clients hard drive
by ikegami (Patriarch) on May 13, 2005 at 16:54 UTC

    "." is not an operator inside either types of quotes. Your two snippets are identical.

    The problem is that "ftp.26.190.158.98" is not a valid IP address or domain name. "26.190.158.98" (without the leading "ftp.") would be a valid IP address, and possibly what the OP needs to use.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://456814]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-19 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found