in reply to Alternate command for tmpnam

Hello kishore05 and welcome to the monastery and to the wonderful world of perl!

Please follow Corion's advice and also, please put <code> ..</code> tags around your snippet.

You can also be interested into sysopen function in junction with O_CREAT flag: you can cycle various file names until it returns not an error.

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.