[Perl] wget in variable
I'm trying to write this script which will download a file but looks like it's not working. When I do "perl script.pl http://download" it shows the help message.
Can anyone tell me what's wrong? Here's the script. Thanks. Code:
|
Hi.
I changed 1 to 0, and formed a string for the system call (and for display purposes made the system for echo, not wget): Code:
#!/usr/bin/perl Code:
% ./p1 some-url-of-your-choice.com |
Hi.
Thanks for your code but it was just echoing and not doing the wget to download an URL. I just changed the ARGV to ARGV[0] and it's now going out to the Internet to download (wget) a file. Here's the new code Code:
|
Hi, noir911.
Quote:
Glad to hear it's working for you ... cheers, makyo |
All times are GMT -5. The time now is 08:26 AM. |