in reply to Writing to a different file name
I would first check if what the cookie supplies is indeed a file, and a file that I'm allowed to copy, and then use
to copy the file.system cp => $file1, $file2; die "Copy returned ", $? >> 8, "\n" if $?;
Note that the way system is used is 'safe', there's no shell that will interpret funny characters.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Writing to a different file name
by ysth (Canon) on Dec 16, 2003 at 21:16 UTC |