tgolf4fun has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; my $dfile = "/stuff/stuff/contest/me/td"; my $wfile = "/stuff/stuff/contest/me /tw"; my $gfile = "/stuff/stuff/contest/me /tg"; my %input; my $input; my $wt=$input{'weight'}; my $d=$input{'date'}; my $g=$input{'Goal_Weight'}; open (DATA,">$gfile") or die "File cannot be opened $!\n"; print DATA "$g"; close (DATA); open (DATA,">>$wfile") or die "File cannot be opened $!\n"; print DATA "$wt\n"; close (DATA); open (DATA,">>$dfile") or die "File cannot be opened $!\n"; print DATA "$d\n"; close (DATA);
janitored by ybiC: Balanced <code> tags around codeblock
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: My cgi nonsense.
by Joost (Canon) on Mar 02, 2005 at 16:52 UTC | |
|
Re: My cgi nonsense.
by InfiniteLoop (Hermit) on Mar 02, 2005 at 17:07 UTC | |
|
Re: My cgi nonsense.
by RazorbladeBidet (Friar) on Mar 02, 2005 at 16:53 UTC | |
|
Re: My cgi nonsense.
by manav (Scribe) on Mar 02, 2005 at 17:01 UTC | |