in reply to Re: Re: Just Another Lotto Script
in thread Just Another Lotto Script
Well, of course the two short answers are "if it works..." and "TMTOWTDI". I guess neither of those are what you're looking for.
In general, there is nothing wrong with what you did. One style point though: when you open a file, always check that it completed successfully:
Writing it to a file is a good idea, at least in development stages, that way you know what you've got. Would you rather not write the html file? You could "stringify" @html, if no other way than with a foreach loop:open HTML, ">html.txt" or die "couldn't open html.txt: $!\n";
Seem reasonable?foreach my $line (@html) { $html .= $line; }
Scott
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Just Another Lotto Script
by Juerd (Abbot) on Mar 06, 2002 at 16:56 UTC | |
|
Re: Re: Re: Re: Just Another Lotto Script
by draper7 (Scribe) on Mar 06, 2002 at 17:10 UTC |