siren jones [[EMAIL PROTECTED]] quoth: *>I tried the following code to retrieve netCDF data files from a website. *> *>use LWP::Simple *> getstore("source_url"/", "input_filename");
perl -MLWP::Simple -e 'getstore "http://www.cpan.org","foo"' works like a charm. However, yours, with the addition of -w and 'use strict;' #!/usr/local/bin/perl -w use strict; use LWP::Simple getstore("http://www.perl.org"/", "ouput_filename"); generates the following with 'perl -c <program name>' --- Bareword found where operator expected at foo line 5, near "", "ouput_filename" (Missing operator before ouput_filename?) Bareword "ouput_filename" not allowed while "strict subs" in use at foo line 5. syntax error at foo line 5, near "", "ouput_filename" foo had compilation errors. --- Modify the program by reading the errors... #!/usr/local/bin/perl -w use strict; use LWP::Simple; getstore("http://www.perl.org", "ouput_filename"); --- which works fine. Always use -w and 'perl -c <program>' is always a good way to ferret out the easy mistakes. e. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]