in reply to Re: Answer: how do i ceate a file if its not present
in thread how do i ceate a file if its not present

I think your first answer is more appropriate...
>> has similar behaviour as >, so when attempting to write to a non existing file with a >> the file will be created as well. Existing files won't be overwritten tho :)

Ofcourse anjaana78 could always look at perlfaq5...

Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.