|
|
| P is for Practical | |
| PerlMonks |
Re: uploading a file with the same nameby amphiplex (Monk) |
| on Jul 24, 2002 at 09:49 UTC ( [id://184834]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
This will not do what you want.
suppose you want to upload the file foo and the file already exists. Your code would check for foo0, which propably does not exist, and overwrite foo. Besides, you append th number, giving you: foo0,foo01,foo012,.... And to concatenate strings you should use ".". One way to do it:
---- amphiplex
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||