in reply to Re^4: weather fetching script
in thread weather fetching script
"..get the description being shown in "quotation marks" ?"
Oh, I hadn't noticed that... you need to change line 46 to read:
The use of 'qq' allows us to use double-quotes within the string, and also ensures that the variables are correctly interpolated.my $out = qq(var adeldesc = "$adeldesc"\n);
"how do I get the script to write to /home/aml33704/public_html/"
Well, you simply change the destination in the open statement to include the full path to the file. I'd do something like this:
..and then:my $outfile = '/home/aml33704/public_html/weather.js';
open W, ">", $outfile or die "Could not open $outfile for writing:$!\n +";
Cheers,
Darren :)
(By the way, which address do I mail my invoice to?) ;)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: weather fetching script
by pip (Novice) on Jul 14, 2006 at 07:29 UTC | |
|
Re^6: weather fetching script
by pip (Novice) on Jul 25, 2006 at 02:10 UTC | |
by McDarren (Abbot) on Jul 25, 2006 at 03:38 UTC | |
by pip (Novice) on Jul 25, 2006 at 07:36 UTC |