wolverina has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/local/bin/perl print "Content-type: text/html\n\n"; use CGI; $q = new CGI; $A_file = $q->cookie('cookie_1'); $B_file = "file.txt"; open FILE, "$B_file"; $Data = <FILE>; close (FILE); open(OUT,">$A_file") or die $!; print OUT "$Data\n" or die $!; close(OUT) or die $!;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Writing to a different file name
by Abigail-II (Bishop) on Dec 16, 2003 at 09:31 UTC | |
by ysth (Canon) on Dec 16, 2003 at 21:16 UTC | |
|
Re: Writing to a different file name
by inman (Curate) on Dec 16, 2003 at 09:00 UTC | |
by bart (Canon) on Dec 16, 2003 at 11:49 UTC | |
|
Re: Writing to a different file name
by Anonymous Monk on Dec 16, 2003 at 08:17 UTC | |
|
Re: Writing to a different file name
by gjb (Vicar) on Dec 16, 2003 at 08:56 UTC | |
|
Re: Writing to a different file name
by Hena (Friar) on Dec 16, 2003 at 09:06 UTC | |
by wolverina (Beadle) on Dec 17, 2003 at 10:48 UTC | |
|
Re: Writing to a different file name
by Anonymous Monk on Dec 16, 2003 at 08:17 UTC |