Your question is not very clear, so think about rephrasing it, maybe with sample input and output.You may also look at: if (-e $somename) You may need to trap the error (there are examples to do this) and then parse it.
No, my reply was not clear.We catch files from web, save as default name as it shows, then pass to our server by using Perl script.So it is a chance that comma or question mark included in file name, but we can not change it.Currently we failed on Perl script by the file name with comma or question mark.How can i resolve this problem?Thanks
It is not Perl's fault.Our Perl script is working fine, but next step which passes para to command line then run another software, can not pick comma inside of filename. This is why.Thanks for all of your replying!
Hi,We have a Perl script to unpack files/directory.Because we can not rename the name of files, so it might have comma or question mark in the file name, and makes our script failed.In script we assign the file name to scalar, which not allowed comma or question mark sign.The question is: how to make this signs available for the files name? I knew i can use regular expression, but still not working.Any idea or redirection will be appreciated.Thanks,